CursorModifier
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
public CursorModifier()
cursorModifier = CursorModifier()
Initializes a new instance of the CursorModifier class.
Properties
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
public double HoverDelay { get; set; }
value = cursorModifier.HoverDelay
cursorModifier.HoverDelay = value
Gets or sets delay for showing of tooltips in miliseconds
public bool ShowTooltip { get; set; }
value = cursorModifier.ShowTooltip
cursorModifier.ShowTooltip = value
Gets or sets value, indicates whether show cursor tooltip or not
public AxisInfo XAxisInfo { get; set; }
value = cursorModifier.XAxisInfo
cursorModifier.XAxisInfo = value
Provides an AxisInfo object, which may be data-bound to
public AxisInfo YAxisInfo { get; set; }
value = cursorModifier.YAxisInfo
cursorModifier.YAxisInfo = value
Provides an AxisInfo object, which may be data-bound to
Methods
protected override void ClearAll()
cursorModifier.ClearAll()
When overriden in a derived class, this method should clear all markers and tooltips from the ModifierSurface
protected virtual void GetAxesData(Point mousePoint)
cursorModifier.GetAxesData(mousePoint)
Performs a hit-test on all axes and aggregates data into the AxisInfo collection
- mousePoint
public static bool GetIncludeSeries(DependencyObject obj)
result = CursorModifier.GetIncludeSeries(obj)
Gets the include Series or not
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
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
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
public override void OnAttached()
cursorModifier.OnAttached()
Called when the Chart Modifier is attached to the Chart Surface
protected override void OnAxisLabelTemplateChanged()
cursorModifier.OnAxisLabelTemplateChanged()
When overriden in a derived class, applies new template to axis labels, and
public override void OnDetached()
cursorModifier.OnDetached()
Called immediately before the Chart Modifier is detached from the Chart Surface
protected override void OnParentSurfaceMouseEnter()
cursorModifier.OnParentSurfaceMouseEnter()
Called when the mouse enters the parent UltrachartSurface
protected override void OnTooltipLabelTemplateChanged()
cursorModifier.OnTooltipLabelTemplateChanged()
When overriden in a derived class, applies new template to tooltip label, and
public static void SetIncludeSeries(DependencyObject obj, bool value)
CursorModifier.SetIncludeSeries(obj, value)
Sets the include Series or not
Fields
public static readonly DependencyProperty IncludeSeriesProperty
value = CursorModifier.IncludeSeriesProperty
Defined IncludeSeries Attached Property
public static readonly DependencyProperty ShowTooltipProperty
value = CursorModifier.ShowTooltipProperty
Defines the ShowTooltip DependencyProperty