WPF TextBlock&Label随父级控件缩放 - zLulus/My_Note GitHub Wiki

效果:
20200416_200544

需要Label/textblock的文字大小随resize改变,则使用Viewbox

<Viewbox Stretch="Uniform">
	<TextBlock Name="myTextBlock" Text="move and rezise TextBlock"></TextBlock>
</Viewbox>

参考资料

How to set textblock or label with resizable font size in WPF?

⚠️ **GitHub.com Fallback** ⚠️