TooltipModifier

StockSharp.Xaml.Charting.ChartModifiers

The TooltipModifier provides a mouse-over tooltip to a chart, outputting a single SeriesInfo object to bind to which updates as the mouse moves over data-points. Add to a UltrachartSurface and set IsEnabled to true to enable this behaviour

Inherits: TooltipModifierBase

Constructors

TooltipModifier
public TooltipModifier()
tooltipModifier = TooltipModifier()

Initializes a new instance of the TooltipModifier class

Properties

TooltipLabelDataContextSelector
public Func<SeriesInfo, object> TooltipLabelDataContextSelector { get; set; }
value = tooltipModifier.TooltipLabelDataContextSelector
tooltipModifier.TooltipLabelDataContextSelector = value

Gets or sets the function which is called internally to get a DataContext for a particular data point

Methods

ClearAll
protected override void ClearAll()
tooltipModifier.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 = TooltipModifier.GetIncludeSeries(obj)

Gets the include Series or not

HandleMasterMouseEvent
protected override void HandleMasterMouseEvent(Point mousePoint)
tooltipModifier.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)
tooltipModifier.HandleSlaveMouseEvent(mousePoint)

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

mousePoint
The current Mouse-point
OnAxisLabelTemplateChanged
protected override void OnAxisLabelTemplateChanged()
tooltipModifier.OnAxisLabelTemplateChanged()

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

OnTooltipLabelTemplateChanged
protected override void OnTooltipLabelTemplateChanged()
tooltipModifier.OnTooltipLabelTemplateChanged()

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

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

Sets the include Series or not

Fields

IncludeSeriesProperty
public static readonly DependencyProperty IncludeSeriesProperty
value = TooltipModifier.IncludeSeriesProperty

Defined IncludeSeries Attached Property

TooltipLabelDataContextSelectorProperty
public static readonly DependencyProperty TooltipLabelDataContextSelectorProperty
value = TooltipModifier.TooltipLabelDataContextSelectorProperty

Defines the TooltipLabelDataContext DependencyProperty