RubberBandXyZoomModifier
The RubberBandXyZoomModifier provides a mouse drag to zoom into a rectangular region, or horizontal section of the chart. Add to a UltrachartSurface and set IsEnabled to true to enable this behaviour
Inherits: ChartModifierBase
Constructors
public RubberBandXyZoomModifier()
rubberBandXyZoomModifier = RubberBandXyZoomModifier()
Initializes a new instance of the RubberBandXyZoomModifier class.
Properties
internal IRubberBandOverlayPlacementStrategy CurrentStrategy { get; }
value = rubberBandXyZoomModifier.CurrentStrategy
Property for testing purposes
public bool IsAnimated { get; set; }
value = rubberBandXyZoomModifier.IsAnimated
rubberBandXyZoomModifier.IsAnimated = value
Gets or sets whether zoom operations should be animated. Default true
public bool IsDragging { get; }
value = rubberBandXyZoomModifier.IsDragging
Gets whether the user is currently dragging the mouse
public bool IsXAxisOnly { get; set; }
value = rubberBandXyZoomModifier.IsXAxisOnly
rubberBandXyZoomModifier.IsXAxisOnly = value
Gets or sets whether the RubberBand should zoom the X-Axis only. If true, then the effect will be instead of a rectangle drawn under the mouse, an horizontal section of the entire chart will be selected
public double MinDragSensitivity { get; set; }
value = rubberBandXyZoomModifier.MinDragSensitivity
rubberBandXyZoomModifier.MinDragSensitivity = value
Gets or sets the drag sensitivity - rectangles dragged smaller than this size in the diagonal will be ignored when zooming. Default is 10 pixels
public Brush RubberBandFill { get; set; }
value = rubberBandXyZoomModifier.RubberBandFill
rubberBandXyZoomModifier.RubberBandFill = value
Gets or sets the Fill brush of the recticule drawn on the screen as the user zooms
public Brush RubberBandStroke { get; set; }
value = rubberBandXyZoomModifier.RubberBandStroke
rubberBandXyZoomModifier.RubberBandStroke = value
Gets or sets the Stroke brush of the recticule drawn on the screen as the user zooms
public DoubleCollection RubberBandStrokeDashArray { get; set; }
value = rubberBandXyZoomModifier.RubberBandStrokeDashArray
rubberBandXyZoomModifier.RubberBandStrokeDashArray = value
Gets or sets the StrokeDashArray, used to set a dashed outline for the rubber band rectangle. See the StrokeDashArray property for usage
public bool ZoomExtentsY { get; set; }
value = rubberBandXyZoomModifier.ZoomExtentsY
rubberBandXyZoomModifier.ZoomExtentsY = value
If true, zooms to extents on the Y-Axis on each zoom operation. Use in conjuction with IsXAxisOnly to achieve different zooming effects
Methods
public override void OnAttached()
rubberBandXyZoomModifier.OnAttached()
Called when the Chart Modifier is attached to the Chart Surface
public override void OnDetached()
rubberBandXyZoomModifier.OnDetached()
Called when the Chart Modifier is detached from the Chart Surface
public override void OnModifierMouseDown(ModifierMouseArgs e)
rubberBandXyZoomModifier.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)
rubberBandXyZoomModifier.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)
rubberBandXyZoomModifier.OnModifierMouseUp(e)
Called when a Mouse Button is released on the parent UltrachartSurface
- e
- Arguments detailing the mouse button operation
Fields
public static readonly DependencyProperty IsAnimatedProperty
value = RubberBandXyZoomModifier.IsAnimatedProperty
Defines the IsAnimated DependencyProperty
public static readonly DependencyProperty IsXAxisOnlyProperty
value = RubberBandXyZoomModifier.IsXAxisOnlyProperty
Defines the IsXAxisOnly dependency property
public static readonly DependencyProperty MinDragSensitivityProperty
value = RubberBandXyZoomModifier.MinDragSensitivityProperty
Defines the MinDragSensitivity DependencyProperty
public static readonly DependencyProperty RubberBandFillProperty
value = RubberBandXyZoomModifier.RubberBandFillProperty
Defines the RubberBandFill dependency property
public static readonly DependencyProperty RubberBandStrokeDashArrayProperty
value = RubberBandXyZoomModifier.RubberBandStrokeDashArrayProperty
Defines the RubberBandStrokeDashArray dependency property
public static readonly DependencyProperty RubberBandStrokeProperty
value = RubberBandXyZoomModifier.RubberBandStrokeProperty
Defines the RubberBandStroke dependency property
public static readonly DependencyProperty ZoomExtentsYProperty
value = RubberBandXyZoomModifier.ZoomExtentsYProperty
Defines the ZoomExtentsY DependencyProperty