LabelProviderBase

StockSharp.Xaml.Charting.Visuals.Axes

Base class to define a LabelProvider. The LabelProvider may be set or data-bound to the LabelProvider property, allowing programmatic overriding of axis labels. Create a class which implements ILabelProvider and return string values from the IComparable) and Boolean) methods

Inherits: ProviderBase

Implements: ILabelProvider

Methods

CreateDataContext
public virtual ITickLabelViewModel CreateDataContext(IComparable dataValue)
result = labelProviderBase.CreateDataContext(dataValue)

Creates a ITickLabelViewModel instance, based on the data-value passed in. Invokes IComparable) to format the specified data-value passed in.

dataValue
The data-value to format
FormatCursorLabel
public abstract string FormatCursorLabel(IComparable dataValue, bool hitTest)
result = labelProviderBase.FormatCursorLabel(dataValue, hitTest)

Formats a label for the cursor, from the specified data-value passed in

dataValue
The data-value to format
hitTest
Cursor hit test.

Returns: The formatted cursor label string

FormatLabel
public abstract string FormatLabel(IComparable dataValue)
result = labelProviderBase.FormatLabel(dataValue)

Formats a label for the axis from the specified data-value passed in

dataValue
The data-value to format

Returns: The formatted label string

OnBeginAxisDraw
public virtual void OnBeginAxisDraw()
labelProviderBase.OnBeginAxisDraw()

Called at the start of an axis render pass, before any labels are formatted for the current draw operation

UpdateDataContext
public virtual ITickLabelViewModel UpdateDataContext(ITickLabelViewModel labelDataContext, IComparable dataValue)
result = labelProviderBase.UpdateDataContext(labelDataContext, dataValue)

Updates existing ITickLabelViewModel, based on the data-value passed in. Invokes IComparable) to format the specified data-value passed in.

labelDataContext
The instance to update
dataValue
The data-value to format