ZoomPanModifierBase

StockSharp.Xaml.Charting.ChartModifiers

Base class for modifiers responsible for pan by mouse drag.

继承自: ChartModifierBase

构造函数

ZoomPanModifierBase()

Initializes a new instance of the ZoomPanModifierBase class.

属性

ClipModeX : ClipMode

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 : bool

Gets whether the user is currently dragging the chart

XyDirection : XyDirection

Defines the direction of the InertialZoomPanModifier

ZoomExtentsY : bool

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

方法

OnModifierMouseDown(ModifierMouseArgs)

Called when a Mouse Button is pressed on the parent UltrachartSurface

e
Arguments detailing the mouse button operation
OnModifierMouseMove(ModifierMouseArgs)

Called when the Mouse is moved on the parent UltrachartSurface

e
Arguments detailing the mouse move operation
OnModifierMouseUp(ModifierMouseArgs)

Called when a Mouse Button is released on the parent UltrachartSurface

e
Arguments detailing the mouse button operation
Pan(Point, Point, Point)

Receives pan command from the user.

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

字段

ClipModeXProperty : DependencyProperty

Defines the ClipToExtentsX Dependency Property

XyDirectionProperty : DependencyProperty

Defines the XyDirection dependency property

ZoomExtentsYProperty : DependencyProperty

Defines the ZoomExtentsY DependencyProperty