Skip to main content
A newer version of this page is available. .

WizardControl.AllowAutoScaling Property

Gets or sets whether the size of the WizardControl’s buttons is changed according to the DPI settings.

Namespace: DevExpress.XtraWizard

Assembly: DevExpress.XtraWizard.v21.2.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Design

Declaration

[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Layout")]
public DefaultBoolean AllowAutoScaling { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean value that specifies whether the size of the WizardControl’s buttons is changed according to the DPI settings.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

The WizardControl’s built-in buttons are scaled when changing DPI settings, according to the AllowAutoScaling property. You can set the AllowAutoScaling property to True, to enable button auto scaling. Set this property to False to disable this feature.

If the AllowAutoScaling property is set to Default, button auto-scaling is enabled if the Form’s AutoScaleMode property is not set to None.

When button auto-scaling is enabled, buttons are always scaled proportionally to the DPI settings. The DPI of 96 is considered as normal size. Larger DPI values result in a larger size of buttons.

See Also