c# - Dynamic TextSize in WPF UIElements -


As suggested, I have a dynamic size of all my WPF UIElement s However, to specify the size of the font in TextBlock , it means that when the size of the element increases or decreases, then the font size remains the same. is. font is there a way to get the shape dynamic? Try entering

Text inside the control in a Viewbox : < / P>

  & lt; Button & gt; & Lt; Viewbox & gt; & Lt; TextBlock & gt; To change the size of the text, click & lt; / TextBlock & gt; & Lt; / Viewbox & gt; & Lt; / Button & gt;  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -