Articles in this section
Category / Section

How to reset zooming in WPF Chart (SfChart)?

1 min read

You can zoom the chart area by using ChartZoomPanBehavior in WPF Chart (SfChart). You can enable the zooming and panning operations by using the EnableMouseWheelZooming, EnablePanning, EnableSelectionZooming, and EnablePinchZooming properties. After the chart area has been zoomed, you can use the ResetOnDoubleTap property to turn off zooming, i.e., when you double click the zoomed chart area, then zooming will be turned off.

XAML

<Syncfusion:SfChart.Behaviors>
    <!--By setting ResetOnDoubleTap property to True the Zooming can be reset by DoubleTap-->
    <Syncfusion:ChartZoomPanBehavior EnableMouseWheelZooming="True" EnablePanning="True" EnableSelectionZooming="True" ResetOnDoubleTap="True">
    </Syncfusion:ChartZoomPanBehavior>
</Syncfusion:SfChart.Behaviors>

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied