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

RibbonOptionsTouch.TouchUI Property

Gets or sets whether the touch UI is enabled for the Ribbon Control and optionally for other DevExpress controls in the project.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v21.2.dll

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

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public DefaultBoolean TouchUI { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

True, if the touch UI is enabled; False, if this mode is disabled; The Default value is equivalent to False.

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.

Property Paths

You can access this nested property as listed below:

Object Type Path to TouchUI
RibbonControl
.OptionsTouch .TouchUI

Remarks

See Touch Support to learn about touch UI mode support for the Ribbon Control.

When True is assigned to the TouchUI property, this value is also assigned to the static WindowsFormsSettings.TouchUIMode property by default. This enables touch UI mode for all DevExpress controls in the project.

To enable touch UI only for the Ribbon Control without affecting other controls in the application, set the RibbonOptionsTouch.AffectOnlyRibbon property to true.

When False or Default is assigned to the TouchUI property, the False value is assigned to the static WindowsFormsSettings.TouchUIMode property.

See Also