Back to Devexpress

WizardControl.AllowAutoScaling Property

windowsforms-devexpress-dot-xtrawizard-dot-wizardcontrol-aeac0d48.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Layout")]
public DefaultBoolean AllowAutoScaling { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<DXCategory("Layout")>
Public Property AllowAutoScaling As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

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

WizardControl Class

WizardControl Members

DevExpress.XtraWizard Namespace