一、绑定Currency,若是没有字符的话,后面须要先加入{},不加的话会出问题html
<TextBlock Text="{Binding Amount, StringFormat={}{0:C}}" />
二、绑定Currency,并在前面加入一些字符,跟上面相比,没有{}spa
<TextBlock Text="{Binding Amount, StringFormat=Total: {0:C}}" />
三、绑定日期.net
<TextBlock Text="{Binding Date, StringFormat={}{0:MM/dd/yyyy}}" />
四、绑定时间code
<TextBlock Text="{Binding Date, StringFormat={}{0:MM/dd/yyyy hh:mm tt}}" />
五、多重绑定orm
六、多重绑定中的特殊字符,如 \txml
特殊字符以下:
\a  BEL
\b  BS - Backspace
\f  FF - Formfeed
\n 
 LF, NL - Linefeed, New Line
\r 
 CR - Carriage return
\t 	 HT - Tab, Horizontal Tabelator
\v  VT - Vertical Tabelatorhtm
引用自:https://blog.csdn.net/jumtre/article/details/20624753blog