Increase/decrease font and control size proportionaly

0
0

Hi everybody,

I was recently asked by a user to increase the font size, since he couldn’t see some text easily. I did so, by changing the base fonts in the theme. However, some controls now crop their content text.

Is there a way to increase controls’ sizes proportionally with the font?

Best,
Alex

  • You must to post comments
0
0

Wisej can scale a container (form, usercontrol, page) and all it’s children using the font of the container – like winforms. Scaling is done using the proportion of the font size difference from the AutoScalingSize stored in InitializeComponent() and the new font size when changing the font. You can also scale individual controls using the Scale() methods. When scaling a control, also the children are scaled including location, size, min/max size, padding, etc.

IIRC, there was a small issue with scaling at design time that is fixed in the upcoming build. But in general it works like WinForms font scaling mode.

HTH

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.