WPF/XAML: How to make all text upper case in TextBlock?

后端 未结 6 776
青春惊慌失措
青春惊慌失措 2021-02-13 17:59

I want all characters in a TextBlock to be displayed in uppercase

 

        
6条回答
  •  误落风尘
    2021-02-13 18:29

    How about a Converter that converts your text to uppercase. This way you original text stays unchanged.

    How to use IValueConverter in Binding of WPF

提交回复
热议问题