我需要的文本前添加一个空格,我的结构是这样的:在DynamicResource中添加空间?
<Setter Property="Text" Value="{DynamicResource oneMatch}"/>
所以显示的内容应该是:" oneMatchContent"
在过去,我也使用了类似的事情StringFormat
:
<TextBlock Text="{Binding oneMatch, StringFormat=This is {0}}"/>
但我没有看到任何想法?Value
的StringFormat
任何想法?
如何应用转换器? http://stackoverflow.com/questions/378979/is-it-possible-to-use-a-converter-within-a-style – zquanghoangz