Represents a behavior that adds two lines in RadChartBase's render surface. The two lines intersect at the center of the closest data point found.
Definition
Namespace:Telerik.Windows.Controls.ChartView
Assembly:Telerik.Windows.Controls.Chart.dll
Syntax:
public class ChartTrackBallBehavior : ChartBehavior
Inheritance: objectInheritanceContextPropagatorChartBehaviorChartTrackBallBehavior
Inherited Members
Constructors
Initializes a new instance of the ChartTrackBallBehavior class.
public ChartTrackBallBehavior()
Fields
PositionProperty
DependencyProperty
Identifies the Position dependency property.
public static readonly DependencyProperty PositionProperty
ShowIntersectionPointsProperty
DependencyProperty
Identifies the ShowIntersectionPoints dependency property.
public static readonly DependencyProperty ShowIntersectionPointsProperty
ShowTrackInfoProperty
DependencyProperty
Identifies the ShowTrackInfo dependency property.
public static readonly DependencyProperty ShowTrackInfoProperty
SnapModeProperty
DependencyProperty
Identifies the SnapMode dependency property.
public static readonly DependencyProperty SnapModeProperty
SnapSinglePointPerSeriesProperty
DependencyProperty
Identifies the SnapSinglePointPerSeries dependency property.
public static readonly DependencyProperty SnapSinglePointPerSeriesProperty
Properties
Position
Point
Gets or sets the position at which the track ball is displayed.
public Point Position { get; set; }
Gets or sets a value indicating whether a visual information for all the closest data points will be displayed.
public bool ShowIntersectionPoints { get; set; }
Gets or sets a value indicating whether a visual information for all the closest data points will be displayed.
public bool ShowTrackInfo { get; set; }
Gets or sets the how this behavior should snap to the closest to a physical location data points.
public TrackBallSnapMode SnapMode { get; set; }
Gets or sets a value indicating whether all data points for the series will be displayed.
public bool SnapSinglePointPerSeries { get; set; }
Methods
CreateInstanceCore()
Freezable
When implemented in a derived class, creates a new instance of the Freezable derived class.
protected override Freezable CreateInstanceCore()
Freezable
The new instance.
Overrides:
This method is called when this behavior is added to the chart.
protected override void OnAttached()
Overrides:
Called when chart template is changed.
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)
The old adorner layer.
adornerContainerCanvasThe adorner layer.
Overrides:
This method is called when this behavior is removed from the chart.
protected override void OnDetached()
Overrides:
Events
Occurs when the value of the Position property is changing. Allows for the new position to be modified.
public event EventHandler<TrackBallPositionChangingEventArgs> PositionChanging
Occurs when a track info is updated, just before the UI that represents it is updated. Allows custom information to be displayed.
public event EventHandler<TrackBallInfoEventArgs> TrackInfoUpdated