InertialZoomPanModifier

StockSharp.Xaml.Charting.ChartModifiers

The InertialZoomPanModifier provides a mouse drag to pan the X and Y axes. Add to a UltrachartSurface and set IsEnabled to true to enable this behaviour

Inherits: ZoomPanModifierBase

Constructors

InertialZoomPanModifier
public InertialZoomPanModifier()
inertialZoomPanModifier = InertialZoomPanModifier()

Initializes a new instance of the InertialZoomPanModifier class.

Methods

OnModifierMouseUp
public override void OnModifierMouseUp(ModifierMouseArgs e)
inertialZoomPanModifier.OnModifierMouseUp(e)

Called when a Mouse Button is released on the parent UltrachartSurface

e
Arguments detailing the mouse button operation
Pan
public override void Pan(Point currentPoint, Point lastPoint, Point startPoint)
inertialZoomPanModifier.Pan(currentPoint, lastPoint, startPoint)

Receives zoom command from the user.

currentPoint
Current point of zoom gesture.
lastPoint
Previous point of zoom gesture.
startPoint
Start point of zoom gesture.
ResetInertia
public override void ResetInertia()
inertialZoomPanModifier.ResetInertia()

Instantly stops any inertia that can be associated with this modifier.