Skip to main content

NavigationOptionsBase.UseTouchDevice Property

Specifies whether a user can use touch gestures to zoom and scroll the chart on touch devices.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v21.2.dll

Declaration

public bool UseTouchDevice { get; set; }

Property Value

Type Description
Boolean

true to allow using the touch device; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to UseTouchDevice
Diagram3D
.NavigationOptions.UseTouchDevice
SimpleDiagram3D
.NavigationOptions.UseTouchDevice
XYDiagram2D
.NavigationOptions.UseTouchDevice
XYDiagram3D
.NavigationOptions.UseTouchDevice

Remarks

The following code allows a user to use keyboard shortcuts, mouse operations, and touch gestures to zoom and scroll a chart:

<dxc:XYDiagram2D
        EnableAxisXNavigation="True"
        EnableAxisYNavigation="True">
    <dxc:XYDiagram2D.NavigationOptions>
        <dxc:NavigationOptions 
            UseKeyboard="True"
            UseScrollBars="True"
            UseMouse="True"
            UseTouchDevice="True"/>
    </dxc:XYDiagram2D.NavigationOptions>
</dxc:XYDiagram2D>
See Also