ZoomPanModifier
StockSharp.Xaml.Charting.ChartModifiers
The ZoomPanModifier 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
ZoomPanModifier
public ZoomPanModifier()
zoomPanModifier = ZoomPanModifier()
Initializes a new instance of the ZoomPanModifier class.
Methods
OnModifierMouseDown
public override void OnModifierMouseDown(ModifierMouseArgs e)
zoomPanModifier.OnModifierMouseDown(e)
Called when a Mouse Button is pressed on the parent UltrachartSurface
- e
- Arguments detailing the mouse button operation
OnModifierMouseUp
public override void OnModifierMouseUp(ModifierMouseArgs e)
zoomPanModifier.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)
zoomPanModifier.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.