Xaml TextBlock set round corner

后端 未结 3 1222
北荒
北荒 2021-02-04 00:32

I am trying to set rounded corner of TextBlock in xaml. But there is no such property.


           


        
3条回答
  •  盖世英雄少女心
    2021-02-04 01:00

    TextBlock do not have such property, however you can do it like this using Rectangle's RadiusX and RadiusY property by binding the width and height of Rectangle to Textblock Width and height.

    
            
            
    
    

提交回复
热议问题