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

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

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

 

        
6条回答
  •  旧巷少年郎
    2021-02-13 18:40

    Or use

    Typography.Capitals="AllSmallCaps"
    

    in your TextBlock definition.

    See here: MSDN - Typography.Capitals

    EDIT:

    This does not work in Windows Phone 8.1, only in Windows 8.1 ...

提交回复
热议问题