RolloverModifier

StockSharp.Xaml.Charting.ChartModifiers

The RolloverModifier provides a mouse-over hit-test to a chart, plus a collection of SeriesInfo objects to bind to which updates as the mouse moves. Add to a UltrachartSurface and set IsEnabled to true to enable this behaviour

Inherits: VerticalSliceModifierBase

Constructors

RolloverModifier
public RolloverModifier()
rolloverModifier = RolloverModifier()

Initializes a new instance of the RolloverModifier class.

Properties

DrawVerticalLine
public bool DrawVerticalLine { get; set; }
value = rolloverModifier.DrawVerticalLine
rolloverModifier.DrawVerticalLine = value

Gets or sets whether a Vertical Line should be drawn at the rollover location

Methods

ClearAll
protected override void ClearAll()
rolloverModifier.ClearAll()

When overriden in a derived class, this method should clear all markers and tooltips from the ModifierSurface

GetIncludeSeries
public static bool GetIncludeSeries(DependencyObject obj)
result = RolloverModifier.GetIncludeSeries(obj)

Gets the include Series or not

GetRolloverMarkerFrom
protected override FrameworkElement GetRolloverMarkerFrom(SeriesInfo seriesInfo)
result = rolloverModifier.GetRolloverMarkerFrom(seriesInfo)

Get rollover marker from SeriesInfo to place on chart

seriesInfo
HandleMasterMouseEvent
protected override void HandleMasterMouseEvent(Point mousePoint)
rolloverModifier.HandleMasterMouseEvent(mousePoint)

When overriden in a derived class, called to handle the Master ChartModifierBase MouseMove event

mousePoint
The current Mouse-point
OnSelectedSeriesChanged
protected override void OnSelectedSeriesChanged(IEnumerable<IRenderableSeries> oldSeries, IEnumerable<IRenderableSeries> newSeries)
rolloverModifier.OnSelectedSeriesChanged(oldSeries, newSeries)

Called when the parent surface SelectedSeries collection changes

oldSeries
newSeries
SetIncludeSeries
public static void SetIncludeSeries(DependencyObject obj, bool value)
RolloverModifier.SetIncludeSeries(obj, value)

Sets the include Series or not

TryUpdateOverlays
protected override void TryUpdateOverlays(Point atPoint)
rolloverModifier.TryUpdateOverlays(atPoint)

If the current modifier IsEnabled, and the Point is valid for the modifier, updates axis and chart overlays

atPoint
The current mouse point

Fields

DrawVerticalLineProperty
public static readonly DependencyProperty DrawVerticalLineProperty
value = RolloverModifier.DrawVerticalLineProperty

Defines the DrawVerticalLine DependencyProperty

IncludeSeriesProperty
public static readonly DependencyProperty IncludeSeriesProperty
value = RolloverModifier.IncludeSeriesProperty

Defined IncludeSeries Attached Property