WPF: How to shift Unicode character into a shared resource?

后端 未结 3 362
生来不讨喜
生来不讨喜 2021-01-18 20:17

I have this XAML:


Is there some way to shift that unicode character

3条回答
  •  佛祖请我去吃肉
    2021-01-18 20:58

    Another alternative which doesn't involve binding is to use TextBlock.Inlines

    
    
    
        
        
    
    

    TextBlock.Inlines is a content property of TextBlock, so tag can be omitted. Inlines provide additional decorating possibilities, like coloring part of the text:

提交回复
热议问题