RolloverModifier
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
public RolloverModifier()
rolloverModifier = RolloverModifier()
Initializes a new instance of the RolloverModifier class.
Properties
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
protected override void ClearAll()
rolloverModifier.ClearAll()
When overriden in a derived class, this method should clear all markers and tooltips from the ModifierSurface
public static bool GetIncludeSeries(DependencyObject obj)
result = RolloverModifier.GetIncludeSeries(obj)
Gets the include Series or not
protected override FrameworkElement GetRolloverMarkerFrom(SeriesInfo seriesInfo)
result = rolloverModifier.GetRolloverMarkerFrom(seriesInfo)
Get rollover marker from SeriesInfo to place on chart
- seriesInfo
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
protected override void OnSelectedSeriesChanged(IEnumerable<IRenderableSeries> oldSeries, IEnumerable<IRenderableSeries> newSeries)
rolloverModifier.OnSelectedSeriesChanged(oldSeries, newSeries)
Called when the parent surface SelectedSeries collection changes
- oldSeries
- newSeries
public static void SetIncludeSeries(DependencyObject obj, bool value)
RolloverModifier.SetIncludeSeries(obj, value)
Sets the include Series or not
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
public static readonly DependencyProperty DrawVerticalLineProperty
value = RolloverModifier.DrawVerticalLineProperty
Defines the DrawVerticalLine DependencyProperty
public static readonly DependencyProperty IncludeSeriesProperty
value = RolloverModifier.IncludeSeriesProperty
Defined IncludeSeries Attached Property