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

NavigationOptionsBase.UseKeyboard Property

Specifies whether a user can use keyboard shortcuts to zoom and scroll the chart.

Namespace: DevExpress.Xpf.Charts

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Charts, DevExpress.Wpf.Charts

Declaration

public bool UseKeyboard { get; set; }

Property Value

Type Description
Boolean

true to allow using the keyboard; otherwise, false.

Property Paths

You can access this nested property as listed below:

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

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