New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class ChartTrackBallBehavior : ChartBehavior

Inheritance: objectInheritanceContextPropagatorChartBehaviorChartTrackBallBehavior

Inherited Members ChartBehavior.OnUnloaded()ChartBehavior.ChartChartBehavior.AdornerContainerInheritanceContextPropagator.FreezeCore(bool)

Constructors

Initializes a new instance of the ChartTrackBallBehavior class.

C#
public ChartTrackBallBehavior()

Fields

PositionProperty

DependencyProperty

Identifies the Position dependency property.

C#
public static readonly DependencyProperty PositionProperty

Identifies the ShowIntersectionPoints dependency property.

C#
public static readonly DependencyProperty ShowIntersectionPointsProperty

ShowTrackInfoProperty

DependencyProperty

Identifies the ShowTrackInfo dependency property.

C#
public static readonly DependencyProperty ShowTrackInfoProperty

SnapModeProperty

DependencyProperty

Identifies the SnapMode dependency property.

C#
public static readonly DependencyProperty SnapModeProperty

Identifies the SnapSinglePointPerSeries dependency property.

C#
public static readonly DependencyProperty SnapSinglePointPerSeriesProperty

Properties

Gets or sets the position at which the track ball is displayed.

C#
public Point Position { get; set; }

Gets or sets a value indicating whether a visual information for all the closest data points will be displayed.

C#
public bool ShowIntersectionPoints { get; set; }

Gets or sets a value indicating whether a visual information for all the closest data points will be displayed.

C#
public bool ShowTrackInfo { get; set; }

Gets or sets the how this behavior should snap to the closest to a physical location data points.

C#
public TrackBallSnapMode SnapMode { get; set; }

Gets or sets a value indicating whether all data points for the series will be displayed.

C#
public bool SnapSinglePointPerSeries { get; set; }

Methods

When implemented in a derived class, creates a new instance of the Freezable derived class.

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

The new instance.

Overrides: InheritanceContextPropagator.CreateInstanceCore()

This method is called when this behavior is added to the chart.

C#
protected override void OnAttached()

Overrides: ChartBehavior.OnAttached()

Called when chart template is changed.

C#
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)
Parameters:oldAdornerContainerCanvas

The old adorner layer.

adornerContainerCanvas

The adorner layer.

Overrides: ChartBehavior.OnChartTemplateChanged(Canvas, Canvas)

This method is called when this behavior is removed from the chart.

C#
protected override void OnDetached()

Overrides: ChartBehavior.OnDetached()

Events

Occurs when the value of the Position property is changing. Allows for the new position to be modified.

C#
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.

C#
public event EventHandler<TrackBallInfoEventArgs> TrackInfoUpdated