DeviceScaleGetNewSizeEventArgsDesiredSize Property

Gets or sets the desired size of the form after scaling. To apply a custom size, set the Handled property to .

Definition

Namespace: KGySoft.WinForms.Forms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public Size DesiredSize { get; set; }

Property Value

Size

Remarks

On platforms where the Form.OnGetDpiScaledSize method is available, an overridden implementation may already have set a desired size. In such case the Handled property is already set to . To revoke such custom resizing and to apply the default scaling behavior instead, set the Handled property to .

See Also