RelativeZoomModifierBase

StockSharp.Xaml.Charting.ChartModifiers

Defines the base class to modifiers which performs relative zoom, such as the MouseWheelZoomModifier and PinchZoomModifier.

Inherits: ChartModifierBase

Properties

GrowFactor
public double GrowFactor { get; set; }
value = relativeZoomModifierBase.GrowFactor
relativeZoomModifierBase.GrowFactor = value

Gets or sets the grow factor to scale (or shrink) both axes on mouse wheel

XyDirection
public XyDirection XyDirection { get; set; }
value = relativeZoomModifierBase.XyDirection
relativeZoomModifierBase.XyDirection = value

Gets or sets the XyDirection to restrict zoom interactivity to.

Methods

GrowBy
protected void GrowBy(Point mousePoint, IAxis axis, double fraction)
relativeZoomModifierBase.GrowBy(mousePoint, axis, fraction)

Performs a zoom on a specific axis around the by the specified scale factor

mousePoint
The mouse point.
axis
The axis.
fraction
The scale factor.
PerformZoom
protected virtual void PerformZoom(Point mousePoint, double xValue, double yValue)
relativeZoomModifierBase.PerformZoom(mousePoint, xValue, yValue)

Performs a zoom on all X and Y Axis around the by the specified X and Y factor

mousePoint
The mouse point.
xValue
The x zoom factor.
yValue
The y zoom factor.

Fields

XyDirectionProperty
public static readonly DependencyProperty XyDirectionProperty
value = RelativeZoomModifierBase.XyDirectionProperty

Defines the XyDirection dependency property