XYDiagram2D.NavigationOptions Property

Zoom and scroll settings for the XYDiagram2D.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public NavigationOptions NavigationOptions { get; set; }
Public Property NavigationOptions As NavigationOptions

Property Value

Type Description
NavigationOptions

A NavigationOptions object that contains zoom and scroll options.

Remarks

Set the XYDiagram2D.EnableAxisXNavigation or XYDiagram2D.EnableAxisYNavigation property to true to apply NavigationOptions settings to the diagram.

Use the NavigationOptions property to define whether users can utilize 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>

The NavigationOptions.AxisXMaxZoomPercent and NavigationOptions.AxisYMaxZoomPercent properties specify zoom limits. The default maximum is x100 (10,000%). When a user reaches the limit, the mouse pointer changes to ZoomingAndScrolling_Zooming04.png.

<dxc:XYDiagram2D
        EnableAxisXNavigation="True"
        EnableAxisYNavigation="True">
    <dxc:XYDiagram2D.NavigationOptions>
        <dxc:NavigationOptions 
            AxisXMaxZoomPercent="500" 
            AxisYMaxZoomPercent="500"/>
    </dxc:XYDiagram2D.NavigationOptions>
</dxc:XYDiagram2D>
See Also