WPF automatic resize font until it fits within parent control

前端 未结 1 1861
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 12:30

I have a user control who\'s root element is a Grid.

I also have have a ContentControl that serves as a placeholder for some text that is filled when data is loaded. Thi

1条回答
  •  再見小時候
    2021-02-02 13:13

    Wrapping your ContentControl in a Viewbox set to only scale down will do this for you:

    
        
    
    

    0 讨论(0)
提交回复
热议问题