IChartModifier

StockSharp.Xaml.Charting.ChartModifiers

Defines the interface to a ChartModifierBase, which can be used to extend the interactivity or rendering of the UltrachartSurface

Implements: IChartModifierBase, IReceiveMouseEvents, INotifyPropertyChanged

Properties

ParentSurface
public IUltrachartSurface ParentSurface { get; set; }
value = iChartModifier.ParentSurface
iChartModifier.ParentSurface = value

Gets or sets the parent UltrachartSurface to perform operations on

XAxis
public IAxis XAxis { get; }
value = iChartModifier.XAxis

Gets the XAxis IAxis instance on the parent UltrachartSurface

YAxes
public IEnumerable<IAxis> YAxes { get; }
value = iChartModifier.YAxes

Returns the YAxes on the parent UltrachartSurface

YAxis
public IAxis YAxis { get; }
value = iChartModifier.YAxis

Gets the primary YAxis, this is the first axis in the YAxes collection

Methods

GetYAxis
public IAxis GetYAxis(string axisId)
result = iChartModifier.GetYAxis(axisId)

Gets the YAxis IAxis instance on the parent UltrachartSurface with the specified Id

axisId
The Id of the axis to get

Returns: The Axis instance

IsPointWithinBounds
public bool IsPointWithinBounds(Point mousePoint, IHitTestable hitTestable)
result = iChartModifier.IsPointWithinBounds(mousePoint, hitTestable)

Gets whether the mouse point is within the bounds of the hit-testable element. Assumes the mouse-point has not been translated yet (performs translation)

mousePoint
hitTestable
OnAnnotationCollectionChanged
public void OnAnnotationCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
iChartModifier.OnAnnotationCollectionChanged(sender, args)

Called when the AnnotationCollection changes

OnXAxesCollectionChanged
public void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
iChartModifier.OnXAxesCollectionChanged(sender, args)

Called with the XAxesAxisCollection changes

OnYAxesCollectionChanged
public void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
iChartModifier.OnYAxesCollectionChanged(sender, args)

Called with the XAxesAxisCollection changes

ResetInertia
public void ResetInertia()
iChartModifier.ResetInertia()

Instantly stops any inertia that can be associated with this modifier.