CursorModifier

StockSharp.Xaml.Charting.ChartModifiers

The CursorModifier provides a cross-hairs (cursor) plus tooltip with X,Y data values under the mouse as the mouse moves. Add to a UltrachartSurface and set IsEnabled to true to enable this behaviour

Inherits: TooltipModifierBase

Constructors

CursorModifier
public CursorModifier()
cursorModifier = CursorModifier()

Initializes a new instance of the CursorModifier class.

Properties

AxisInfo
public ObservableCollection<AxisInfo> AxisInfo { get; set; }
value = cursorModifier.AxisInfo
cursorModifier.AxisInfo = value

Provides a collection of AxisInfo structs, which may be data-bound to in the UI defined by the AxisLabelTemplate Control template

HoverDelay
public double HoverDelay { get; set; }
value = cursorModifier.HoverDelay
cursorModifier.HoverDelay = value

Gets or sets delay for showing of tooltips in miliseconds

ShowTooltip
public bool ShowTooltip { get; set; }
value = cursorModifier.ShowTooltip
cursorModifier.ShowTooltip = value

Gets or sets value, indicates whether show cursor tooltip or not

XAxisInfo
public AxisInfo XAxisInfo { get; set; }
value = cursorModifier.XAxisInfo
cursorModifier.XAxisInfo = value

Provides an AxisInfo object, which may be data-bound to

YAxisInfo
public AxisInfo YAxisInfo { get; set; }
value = cursorModifier.YAxisInfo
cursorModifier.YAxisInfo = value

Provides an AxisInfo object, which may be data-bound to

Methods

ClearAll
protected override void ClearAll()
cursorModifier.ClearAll()

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

GetAxesData
protected virtual void GetAxesData(Point mousePoint)
cursorModifier.GetAxesData(mousePoint)

Performs a hit-test on all axes and aggregates data into the AxisInfo collection

mousePoint
GetIncludeSeries
public static bool GetIncludeSeries(DependencyObject obj)
result = CursorModifier.GetIncludeSeries(obj)

Gets the include Series or not

GetSeriesInfoAt
protected override IEnumerable<SeriesInfo> GetSeriesInfoAt(Point point)
result = cursorModifier.GetSeriesInfoAt(point)

Enumerates RenderableSeries on the parent ParentSurface and gets SeriesInfo objects in given point

point
HandleMasterMouseEvent
protected override void HandleMasterMouseEvent(Point mousePoint)
cursorModifier.HandleMasterMouseEvent(mousePoint)

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

mousePoint
The current Mouse-point
HandleSlaveMouseEvent
protected override void HandleSlaveMouseEvent(Point mousePoint)
cursorModifier.HandleSlaveMouseEvent(mousePoint)

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

mousePoint
The current Mouse-point
OnAttached
public override void OnAttached()
cursorModifier.OnAttached()

Called when the Chart Modifier is attached to the Chart Surface

OnAxisLabelTemplateChanged
protected override void OnAxisLabelTemplateChanged()
cursorModifier.OnAxisLabelTemplateChanged()

When overriden in a derived class, applies new template to axis labels, and

OnDetached
public override void OnDetached()
cursorModifier.OnDetached()

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

OnParentSurfaceMouseEnter
protected override void OnParentSurfaceMouseEnter()
cursorModifier.OnParentSurfaceMouseEnter()

Called when the mouse enters the parent UltrachartSurface

OnTooltipLabelTemplateChanged
protected override void OnTooltipLabelTemplateChanged()
cursorModifier.OnTooltipLabelTemplateChanged()

When overriden in a derived class, applies new template to tooltip label, and

SetIncludeSeries
public static void SetIncludeSeries(DependencyObject obj, bool value)
CursorModifier.SetIncludeSeries(obj, value)

Sets the include Series or not

Fields

IncludeSeriesProperty
public static readonly DependencyProperty IncludeSeriesProperty
value = CursorModifier.IncludeSeriesProperty

Defined IncludeSeries Attached Property

ShowTooltipProperty
public static readonly DependencyProperty ShowTooltipProperty
value = CursorModifier.ShowTooltipProperty

Defines the ShowTooltip DependencyProperty