XAxisDragModifier

StockSharp.Xaml.Charting.ChartModifiers

The XAxisDragModifier provides a mouse drag to scale the X-Axis. This behaviour scales the axis in a different direction depending on which half of the axis the user starts the operation in Add to a UltrachartSurface and set IsEnabled to true to enable this behaviour

Hereda de: AxisDragModifierBase

Constructores

XAxisDragModifier()

Initializes a new instance of the XAxisDragModifier class.

Propiedades

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

Métodos

CalculateScaledRange(Point, Point, bool, IAxis) : IRange

When overriden in a derived class, calculates an output IRange to apply to the associated AxisBaseAxis, given the input parameters

currentPoint
The current mouse position
lastPoint
The last mouse position
isSecondHalf
A flag, which determines how the scale operates, e.g. which half of the axis (top or bottom, left or right) was dragged
axis
The axis being operated on

Devuelve: The output IRange

GetCurrentAxis() : IAxis

Gets the IAxis instance, which current modifier is associated with, on the parent UltrachartSurface

OnModifierMouseDown(ModifierMouseArgs)

Called when a Mouse Button is pressed on the parent UltrachartSurface

e
Arguments detailing the mouse button operation
OnModifierMouseUp(ModifierMouseArgs)

Called when a Mouse Button is released on the parent UltrachartSurface

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

Peforms a pan on the assocaited AxisBase. The pan is considered to be a drag from to

currentPoint
The current mouse point
lastPoint
The last mouse point

Campos

ClipModeXProperty : DependencyProperty

Defines the ClipToExtentsX Dependency Property