ZoomPanModifierBase

StockSharp.Xaml.Charting.ChartModifiers

Base class for modifiers responsible for pan by mouse drag.

Inherits: ChartModifierBase

Constructors

ZoomPanModifierBase
protected ZoomPanModifierBase()
zoomPanModifierBase = ZoomPanModifierBase()

Initializes a new instance of the ZoomPanModifierBase class.

Properties

ClipModeX
public ClipMode ClipModeX { get; set; }
value = zoomPanModifierBase.ClipModeX
zoomPanModifierBase.ClipModeX = value

Defines how panning behaves when you reach the edge of the X-Axis extents. e.g. ClipMode.ClipAtExtents prevents panning outside of the X-Axis, ClipMode.None allows panning outside

IsDragging
public bool IsDragging { get; protected set; }
value = zoomPanModifierBase.IsDragging
zoomPanModifierBase.IsDragging = value

Gets whether the user is currently dragging the chart

XyDirection
public XyDirection XyDirection { get; set; }
value = zoomPanModifierBase.XyDirection
zoomPanModifierBase.XyDirection = value

Defines the direction of the InertialZoomPanModifier

ZoomExtentsY
public bool ZoomExtentsY { get; set; }
value = zoomPanModifierBase.ZoomExtentsY
zoomPanModifierBase.ZoomExtentsY = value

If true, zooms to extents on the Y-Axis on each zoom operation when panning in X-Direction only. Use in conjuction with XyDirection to achieve different zooming effects

Methods

OnModifierMouseDown
public override void OnModifierMouseDown(ModifierMouseArgs e)
zoomPanModifierBase.OnModifierMouseDown(e)

Called when a Mouse Button is pressed on the parent UltrachartSurface

e
Arguments detailing the mouse button operation
OnModifierMouseMove
public override void OnModifierMouseMove(ModifierMouseArgs e)
zoomPanModifierBase.OnModifierMouseMove(e)

Called when the Mouse is moved on the parent UltrachartSurface

e
Arguments detailing the mouse move operation
OnModifierMouseUp
public override void OnModifierMouseUp(ModifierMouseArgs e)
zoomPanModifierBase.OnModifierMouseUp(e)

Called when a Mouse Button is released on the parent UltrachartSurface

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

Receives pan command from the user.

currentPoint
Current point of the gesture.
lastPoint
Previous point of the gesture.
startPoint
Start point of the gesture.

Fields

ClipModeXProperty
public static readonly DependencyProperty ClipModeXProperty
value = ZoomPanModifierBase.ClipModeXProperty

Defines the ClipToExtentsX Dependency Property

XyDirectionProperty
public static readonly DependencyProperty XyDirectionProperty
value = ZoomPanModifierBase.XyDirectionProperty

Defines the XyDirection dependency property

ZoomExtentsYProperty
public static readonly DependencyProperty ZoomExtentsYProperty
value = ZoomPanModifierBase.ZoomExtentsYProperty

Defines the ZoomExtentsY DependencyProperty