SeriesValueModifier

StockSharp.Xaml.Charting.ChartModifiers

A custom ChartModifierBase which places an AxisMarkerAnnotation on the YAxis for each BaseRenderableSeries in the chart, showing the current BaseRenderableSeries latest Y-value. E.g. for each series, place one axis-marker with the latest Y-value of the series

Inherits: ChartModifierBase

Constructors

SeriesValueModifier
public SeriesValueModifier()
seriesValueModifier = SeriesValueModifier()

Initializes a new instance of the SeriesValueModifier class.

Properties

AnnotationsBySeries
protected IDictionary<IRenderableSeries, IAnnotation> AnnotationsBySeries { get; }
value = seriesValueModifier.AnnotationsBySeries

Stores AxisMarkerAnnotation instances keyed by IRenderableSeries

AxisMarkerStyle
public Style AxisMarkerStyle { get; set; }
value = seriesValueModifier.AxisMarkerStyle
seriesValueModifier.AxisMarkerStyle = value

Gets or sets a Style to apply to Axis Markers. See remarks for implementation

YAxisId
public string YAxisId { get; set; }
value = seriesValueModifier.YAxisId
seriesValueModifier.YAxisId = value

Defines which YAxis to bind the SeriesValueModifier to, matching by string Id

Methods

GetIsLastPointInViewport
public static bool GetIsLastPointInViewport(DependencyObject obj)
result = SeriesValueModifier.GetIsLastPointInViewport(obj)

Gets the value of the IsLastPointInViewportProperty

GetIsRenderableSeriesInViewport
public static bool GetIsRenderableSeriesInViewport(DependencyObject obj)
result = SeriesValueModifier.GetIsRenderableSeriesInViewport(obj)

Gets the value of the IsRenderableSeriesInViewportProperty

GetIsSeriesValueModifierEnabled
public static bool GetIsSeriesValueModifierEnabled(UIElement element)
result = SeriesValueModifier.GetIsSeriesValueModifierEnabled(element)

Gets the IsSeriesValueModifierEnabled property on the element. When Set to True on a RenderableSeries, this series will be included in the SeriesValueModifier processing, else it will be excluded

element
The element.

Returns: if set to true this series will be included in the SeriesValueModifier processing, else it will be excluded.

GetSeriesMarkerColor
public static Color GetSeriesMarkerColor(DependencyObject obj)
result = SeriesValueModifier.GetSeriesMarkerColor(obj)

Gets the value of the SeriesMarkerColorProperty

OnAttached
public override void OnAttached()
seriesValueModifier.OnAttached()

Called when the Chart Modifier is attached to the Chart Surface

OnDetached
public override void OnDetached()
seriesValueModifier.OnDetached()

Called immediately before the Chart Modifier is detached from the Chart Surface

OnIsEnabledChanged
protected override void OnIsEnabledChanged()
seriesValueModifier.OnIsEnabledChanged()

Called when the IsEnabled property changes on this SeriesValueModifier instance

OnParentSurfaceRendered
public override void OnParentSurfaceRendered(UltrachartRenderedMessage e)
seriesValueModifier.OnParentSurfaceRendered(e)

Called when the parent UltrachartSurface is rendered

e
The UltrachartRenderedMessage which contains the event arg data
SetIsLastPointInViewport
public static void SetIsLastPointInViewport(DependencyObject obj, bool value)
SeriesValueModifier.SetIsLastPointInViewport(obj, value)

Sets the value of the IsLastPointInViewportProperty

SetIsRenderableSeriesInViewport
public static void SetIsRenderableSeriesInViewport(DependencyObject obj, bool value)
SeriesValueModifier.SetIsRenderableSeriesInViewport(obj, value)

Gets the value of the IsRenderableSeriesInViewportProperty

SetIsSeriesValueModifierEnabled
public static void SetIsSeriesValueModifierEnabled(UIElement element, bool value)
SeriesValueModifier.SetIsSeriesValueModifierEnabled(element, value)

Sets the IsSeriesValueModifierEnabled property on the element. When Set to True on a RenderableSeries, this series will be included in the SeriesValueModifier processing, else it will be excluded

element
The element.
value
if set to true this series will be included in the SeriesValueModifier processing, else it will be excluded.
SetSeriesMarkerColor
public static void SetSeriesMarkerColor(DependencyObject obj, Color value)
SeriesValueModifier.SetSeriesMarkerColor(obj, value)

Sets the value of the SeriesMarkerColorProperty

Fields

AxisMarkerStyleProperty
public static readonly DependencyProperty AxisMarkerStyleProperty
value = SeriesValueModifier.AxisMarkerStyleProperty

The axis marker style DependencyProperty.

IsLastPointInViewportProperty
public static readonly DependencyProperty IsLastPointInViewportProperty
value = SeriesValueModifier.IsLastPointInViewportProperty

Defines the IsLastPointInViewportProperty attached property. It is used to change the opacity of AxisMarker associated with a renderable series when the last point it goes outside the viewport.

IsRenderableSeriesInViewportProperty
public static readonly DependencyProperty IsRenderableSeriesInViewportProperty
value = SeriesValueModifier.IsRenderableSeriesInViewportProperty

Defines the IsRenderableSeriesInViewport attached property. It is used to hide the AxisMarker associated with a renderable series when it goes outside the viewport.

IsSeriesValueModifierEnabledProperty
public static readonly DependencyProperty IsSeriesValueModifierEnabledProperty
value = SeriesValueModifier.IsSeriesValueModifierEnabledProperty

The IsSeriesValueModifier DependencyProperty. When Set to True on a RenderableSeries, this series will be included in the SeriesValueModifier processing, else it will be excluded

SeriesMarkerColorProperty
public static readonly DependencyProperty SeriesMarkerColorProperty
value = SeriesValueModifier.SeriesMarkerColorProperty

Defines the LastPointColor attached property. Holds the color of the last visible bar in a viewport for a RenderableSeries

YAxisIdProperty
public static readonly DependencyProperty YAxisIdProperty
value = SeriesValueModifier.YAxisIdProperty

Defines the YAxisId DependencyProperty