Back to Devexpress

EditorContainer.AllowTouchGestures Property

windowsforms-devexpress-dot-xtraeditors-dot-container-dot-editorcontainer-7c7e3d55.md

latest2.8 KB
Original Source

EditorContainer.AllowTouchGestures Property

Gets or sets whether the EditorContainer allows touch gestures when the app runs on touch-enabled devices.

Namespace : DevExpress.XtraEditors.Container

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public DefaultBoolean AllowTouchGestures { get; set; }
vb
<Browsable(False)>
Public Property AllowTouchGestures As DefaultBoolean

Property Value

TypeDescription
DefaultBoolean

A DefaultBoolean enumeration value that specifies whether the EditorContainer should process user gestures when the app runs on touch-enabled devices.

|

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

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowTouchGestures property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-win-gantt-control/CS/XPO/GanttSolutionXPO/GanttSolutionXPO.Win/Editors/CustomGanttEditor.cs#L84

csharp
control.ChartMappings.PredecessorsFieldName = nameof(IMyTask.PredecessorTasks);
control.AllowTouchGestures = DevExpress.Utils.DefaultBoolean.True;
control.OptionsBehavior.ScheduleMode = DevExpress.XtraGantt.Options.ScheduleMode.Auto;

See Also

EditorContainer Class

EditorContainer Members

DevExpress.XtraEditors.Container Namespace