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()

Initializes a new instance of the RubberBandXyZoomModifier class.

Properties

CurrentStrategy : IRubberBandOverlayPlacementStrategy

Property for testing purposes

IsAnimated : bool

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

IsDragging : bool

Gets whether the user is currently dragging the mouse

IsXAxisOnly : bool

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 : double

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 : Brush

Gets or sets the Fill brush of the recticule drawn on the screen as the user zooms

RubberBandStroke : Brush

Gets or sets the Stroke brush of the recticule drawn on the screen as the user zooms

RubberBandStrokeDashArray : DoubleCollection

Gets or sets the StrokeDashArray, used to set a dashed outline for the rubber band rectangle. See the StrokeDashArray property for usage

ZoomExtentsY : bool

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()

Called when the Chart Modifier is attached to the Chart Surface

OnDetached()

Called when the Chart Modifier is detached from the Chart Surface

OnModifierMouseDown(ModifierMouseArgs)

Called when a Mouse Button is pressed on the parent UltrachartSurface

e
Arguments detailing the mouse button operation
OnModifierMouseMove(ModifierMouseArgs)

Called when the Mouse is moved on the parent UltrachartSurface

e
Arguments detailing the mouse move operation
OnModifierMouseUp(ModifierMouseArgs)

Called when a Mouse Button is released on the parent UltrachartSurface

e
Arguments detailing the mouse button operation

Fields

IsAnimatedProperty : DependencyProperty

Defines the IsAnimated DependencyProperty

IsXAxisOnlyProperty : DependencyProperty

Defines the IsXAxisOnly dependency property

MinDragSensitivityProperty : DependencyProperty

Defines the MinDragSensitivity DependencyProperty

RubberBandFillProperty : DependencyProperty

Defines the RubberBandFill dependency property

RubberBandStrokeDashArrayProperty : DependencyProperty

Defines the RubberBandStrokeDashArray dependency property

RubberBandStrokeProperty : DependencyProperty

Defines the RubberBandStroke dependency property

ZoomExtentsYProperty : DependencyProperty

Defines the ZoomExtentsY DependencyProperty

_shape : Shape

reticule