XAxisDragModifier
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
Наследует: AxisDragModifierBase
Конструкторы
XAxisDragModifier()
Initializes a new instance of the XAxisDragModifier class.
Свойства
Методы
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
Возвращает: 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
Поля
ClipModeXProperty : DependencyProperty
Defines the ClipToExtentsX Dependency Property