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

BarAndDockingControllerLookAndFeel.FormTouchUIMode Property

Gets or sets whether the touch UI mode is enabled for the controls managed by the current BarAndDockingController.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v21.2.dll

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

Declaration

[DefaultValue(DefaultBoolean.Default)]
public virtual DefaultBoolean FormTouchUIMode { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A value that specifies whether the touch UI mode is enabled for the controls managed by the current BarAndDockingController.

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

In touch UI mode, controls automatically increase their size and the distance between some of their elements. The size and distance are increased according to the TouchScaleFactor setting.

To enable touch UI mode and set the touch UI scale factor for all forms within your application, use the WindowsFormsSettings.TouchUIMode and WindowsFormsSettings.TouchScaleFactor static settings.

To specify touch UI settings for the following controls within individual forms, the BarAndDockingControllerLookAndFeel.FormTouchUIMode and BarAndDockingControllerLookAndFeel.FormTouchScaleFactor properties can be used.

Touch UI mode for these controls/components can be enabled/disabled as follows:

If the BarAndDockingControllerLookAndFeel.FormTouchUIMode property is set to Default, the touch UI mode availability is controlled by the WindowsFormsSettings.TouchUIMode global setting.

See Also