效果:
WPF TextBlock&Label随父级控件缩放

需要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?

相关文章:

  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-27
  • 2021-08-20
  • 2022-12-23
  • 2021-07-20
  • 2021-05-31
  • 2022-12-23
相关资源
相似解决方案