RubberBandXyZoomModifier

StockSharp.Xaml.Charting.ChartModifiers

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

RubberBandXyZoomModifier
public RubberBandXyZoomModifier()
rubberBandXyZoomModifier = RubberBandXyZoomModifier()

Initializes a new instance of the RubberBandXyZoomModifier class.

Properties

CurrentStrategy
internal IRubberBandOverlayPlacementStrategy CurrentStrategy { get; }
value = rubberBandXyZoomModifier.CurrentStrategy

Property for testing purposes

IsAnimated
public bool IsAnimated { get; set; }
value = rubberBandXyZoomModifier.IsAnimated
rubberBandXyZoomModifier.IsAnimated = value

Gets or sets whether zoom operations should be animated. Default true

IsDragging
public bool IsDragging { get; }
value = rubberBandXyZoomModifier.IsDragging

Gets whether the user is currently dragging the mouse

IsXAxisOnly
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

MinDragSensitivity
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

RubberBandFill
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

RubberBandStroke
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

RubberBandStrokeDashArray
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

ZoomExtentsY
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

OnAttached
public override void OnAttached()
rubberBandXyZoomModifier.OnAttached()

Called when the Chart Modifier is attached to the Chart Surface

OnDetached
public override void OnDetached()
rubberBandXyZoomModifier.OnDetached()

Called when the Chart Modifier is detached from the Chart Surface

OnModifierMouseDown
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
OnModifierMouseMove
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
OnModifierMouseUp
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

IsAnimatedProperty
public static readonly DependencyProperty IsAnimatedProperty
value = RubberBandXyZoomModifier.IsAnimatedProperty

Defines the IsAnimated DependencyProperty

IsXAxisOnlyProperty
public static readonly DependencyProperty IsXAxisOnlyProperty
value = RubberBandXyZoomModifier.IsXAxisOnlyProperty

Defines the IsXAxisOnly dependency property

MinDragSensitivityProperty
public static readonly DependencyProperty MinDragSensitivityProperty
value = RubberBandXyZoomModifier.MinDragSensitivityProperty

Defines the MinDragSensitivity DependencyProperty

RubberBandFillProperty
public static readonly DependencyProperty RubberBandFillProperty
value = RubberBandXyZoomModifier.RubberBandFillProperty

Defines the RubberBandFill dependency property

RubberBandStrokeDashArrayProperty
public static readonly DependencyProperty RubberBandStrokeDashArrayProperty
value = RubberBandXyZoomModifier.RubberBandStrokeDashArrayProperty

Defines the RubberBandStrokeDashArray dependency property

RubberBandStrokeProperty
public static readonly DependencyProperty RubberBandStrokeProperty
value = RubberBandXyZoomModifier.RubberBandStrokeProperty

Defines the RubberBandStroke dependency property

ZoomExtentsYProperty
public static readonly DependencyProperty ZoomExtentsYProperty
value = RubberBandXyZoomModifier.ZoomExtentsYProperty

Defines the ZoomExtentsY DependencyProperty

_shape
private Shape _shape
value = rubberBandXyZoomModifier._shape

reticule