AutoScaling
Adjusts the size of a container and all its children when the font size changes.
Last updated
Adjusts the size of a container and all its children when the font size changes.
Last updated
All Wisej.NET container classes support thee modes of auto-scaling through the AutoScaleMode property:
None. No autoscaling is performed.
Font. The container and all its children are automatically scaled when the font changes.
Inherit. Inherits the AutoScaleMode from the parent.
Autoscaling works by calculating the difference in size between the previous font and the new font. It is applied to all child controls size and location, and each control may scale its own internal components. For example, the DataGridView autoscales the width of its columns.
This feature allows an application to resize a page, window, or just a single control, to fit the content to a different font.