简体   繁体   English

WPF将字体大小调整为窗口比例

[英]WPF adjust font size to window ratio

Is there a good wait to adjust font size according to window size? 是否有很好的等待根据窗口大小调整字体大小? I have a loading image that resizes / stretches to the window size. 我有一个正在加载图像,它会调整大小/拉伸到窗口大小。 In the center of it is a label with the status of the current process. 它的中心是带有当前过程状态的标签。

What would be the best way to increase or decrease the font size according to the window size to make sure the label content never overlaps the image? 根据窗口大小增加或减小字体大小以确保标签内容从不重叠图像的最佳方法是什么?

有一个ViewBox可以应用于孔窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM