Class
ChartTrackBallBehavior

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

Constructors

ChartTrackBallBehavior()

Initializes a new instance of the ChartTrackBallBehavior class.

Declaration

cs-api-definition
public ChartTrackBallBehavior()

Fields

InfoStyleProperty

Identifies the InfoStyle property.

Declaration

cs-api-definition
public static readonly DependencyProperty InfoStyleProperty

Field Value

DependencyProperty

IntersectionTemplateProperty

Identifies the IntersectionTemplateProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IntersectionTemplateProperty

Field Value

DependencyProperty

LineStyleProperty

Identifies the LineStyle property.

Declaration

cs-api-definition
public static readonly DependencyProperty LineStyleProperty

Field Value

DependencyProperty

TrackInfoTemplateProperty

Identifies the TrackInfoTemplateProperty dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TrackInfoTemplateProperty

Field Value

DependencyProperty

Properties

InfoMode

Gets or sets a value indicating the track information displayed by the behavior.

Declaration

cs-api-definition
public TrackInfoMode InfoMode { get; set; }

Property Value

TrackInfoMode

InfoStyle

Gets or sets the Style that defines the appearance of the TrackInfo control displayed by a ChartTrackBallBehavior instance. The style should target the TrackBallInfoControl type.

Declaration

cs-api-definition
public Style InfoStyle { get; set; }

Property Value

Style

LineStyle

Gets or sets the Style that defines the appearance of the line displayed by a ChartTrackBallBehavior instance. The style should target the type.

Declaration

cs-api-definition
public Style LineStyle { get; set; }

Property Value

Style

ShowInfo

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

Declaration

cs-api-definition
public bool ShowInfo { get; set; }

Property Value

bool

ShowIntersectionPoints

Gets or sets a value indicating whether a visual representation for all the intersection points will be displayed.

Declaration

cs-api-definition
public bool ShowIntersectionPoints { get; set; }

Property Value

bool

SnapMode

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

Declaration

cs-api-definition
public TrackBallSnapMode SnapMode { get; set; }

Property Value

TrackBallSnapMode

Methods

GetIntersectionTemplate(DependencyObject)

Gets the DataTemplate instance for the specified object instance.

Declaration

cs-api-definition
public static DataTemplate GetIntersectionTemplate(DependencyObject instance)

Parameters

instance

DependencyObject

Returns

DataTemplate

Remarks

This template is used to highlight the intersection point of each ChartSeries instance with the trackball line.

GetTrackInfoTemplate(DependencyObject)

Gets the DataTemplate instance for the provided object instance.

Declaration

cs-api-definition
public static DataTemplate GetTrackInfoTemplate(DependencyObject instance)

Parameters

instance

DependencyObject

Returns

DataTemplate

Remarks

This template defines the appearance of the information for the currently hit data point of each ChartSeries.

OnChartUIUpdated()

A callback from the owning RadChartBase instance that notifies for a completed UpdateUI pass.

Declaration

cs-api-definition
protected override void OnChartUIUpdated()

Overrides ChartBehavior.OnChartUIUpdated()

OnDetached()

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

Declaration

cs-api-definition
protected override void OnDetached()

Overrides ChartBehavior.OnDetached()

OnHoldCompleted(HoldingRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnHoldCompleted(HoldingRoutedEventArgs args)

Parameters

args

HoldingRoutedEventArgs

Overrides ChartBehavior.OnHoldCompleted(HoldingRoutedEventArgs)

OnHoldStarted(HoldingRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnHoldStarted(HoldingRoutedEventArgs args)

Parameters

args

HoldingRoutedEventArgs

Overrides ChartBehavior.OnHoldStarted(HoldingRoutedEventArgs)

OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs args)

Parameters

args

ManipulationDeltaRoutedEventArgs

Overrides ChartBehavior.OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

OnPointerEntered(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerEntered(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerEntered(PointerRoutedEventArgs)

OnPointerExited(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerExited(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerExited(PointerRoutedEventArgs)

OnPointerMoved(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerMoved(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerMoved(PointerRoutedEventArgs)

OnPointerPressed(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerPressed(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerPressed(PointerRoutedEventArgs)

OnPointerReleased(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected override void OnPointerReleased(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

Overrides ChartBehavior.OnPointerReleased(PointerRoutedEventArgs)

SetIntersectionTemplate(DependencyObject, DataTemplate)

Sets the DataTemplate instance for the specified object instance.

Declaration

cs-api-definition
public static void SetIntersectionTemplate(DependencyObject instance, DataTemplate value)

Parameters

instance

DependencyObject

The object instance to apply the template to.

value

DataTemplate

The specified DataTemplate instance.

Remarks

This template is used to highlight the intersection point of each ChartSeries instance with the trackball line.

SetTrackInfoTemplate(DependencyObject, DataTemplate)

Gets the specified DataTemplate instance to the provided object instance.

Declaration

cs-api-definition
public static void SetTrackInfoTemplate(DependencyObject instance, DataTemplate value)

Parameters

instance

DependencyObject

value

DataTemplate

Remarks

This template defines the appearance of the information for the currently hit data point of each ChartSeries.

Events

TrackInfoUpdated

Occurs when a track info is updated, just before the UI that represents it is updated. Allows custom information to be displayed.

Declaration

cs-api-definition
public event EventHandler<TrackBallInfoEventArgs> TrackInfoUpdated

Event Value

EventHandler<TrackBallInfoEventArgs>