ZoomPanModifierBase
Base class for modifiers responsible for pan by mouse drag.
Inherits: ChartModifierBase
Constructors
protected ZoomPanModifierBase()
zoomPanModifierBase = ZoomPanModifierBase()
Initializes a new instance of the ZoomPanModifierBase class.
Properties
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
public bool IsDragging { get; protected set; }
value = zoomPanModifierBase.IsDragging
zoomPanModifierBase.IsDragging = value
Gets whether the user is currently dragging the chart
public XyDirection XyDirection { get; set; }
value = zoomPanModifierBase.XyDirection
zoomPanModifierBase.XyDirection = value
Defines the direction of the InertialZoomPanModifier
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
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
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
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
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
public static readonly DependencyProperty ClipModeXProperty
value = ZoomPanModifierBase.ClipModeXProperty
Defines the ClipToExtentsX Dependency Property
public static readonly DependencyProperty XyDirectionProperty
value = ZoomPanModifierBase.XyDirectionProperty
Defines the XyDirection dependency property
public static readonly DependencyProperty ZoomExtentsYProperty
value = ZoomPanModifierBase.ZoomExtentsYProperty
Defines the ZoomExtentsY DependencyProperty