Note
Please note that this property affects the font only. The elevated icon (see the IsElevated property) is always scaled with V2 awareness,
whereas scaling the size and location always depends on the executing platform behavior.
[DefaultValueAttribute(true)]
public bool AutoScaleFont { get; set; }<DefaultValueAttribute(true)>
Public Property AutoScaleFont As Boolean
Get
Setpublic:
[DefaultValueAttribute(true)]
property bool AutoScaleFont {
bool get ();
void set (bool value);
}[<DefaultValueAttribute(true)>]
member AutoScaleFont : bool with get, setWhen , the Font is automatically scaled to the current DPI of the corresponding display on every executing platform. It also ensures that without an explicitly set font it is inherited from Parent, which would be the normal behavior, but is broken in .NET 6+ and above.
When , the Font may or may not be scaled, and the font of the parent control may or may not be applied correctly, depending on the default behavior of the executing platform.