ClassChartTrackBallBehavior
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.UI.Xaml.Controls.Chart
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class ChartTrackBallBehavior : ChartBehavior
Inheritance: objectChartBehaviorChartTrackBallBehavior
Inherited Members
Constructors
ChartTrackBallBehavior()
Initializes a new instance of the ChartTrackBallBehavior class.
Declaration
public ChartTrackBallBehavior()
Fields
InfoStyleProperty
Identifies the InfoStyle property.
Declaration
public static readonly DependencyProperty InfoStyleProperty
Field Value
DependencyProperty
IntersectionTemplateProperty
Identifies the IntersectionTemplateProperty dependency property.
Declaration
public static readonly DependencyProperty IntersectionTemplateProperty
Field Value
DependencyProperty
LineStyleProperty
Identifies the LineStyle property.
Declaration
public static readonly DependencyProperty LineStyleProperty
Field Value
DependencyProperty
TrackInfoTemplateProperty
Identifies the TrackInfoTemplateProperty dependency property.
Declaration
public static readonly DependencyProperty TrackInfoTemplateProperty
Field Value
DependencyProperty
Properties
InfoMode
Gets or sets a value indicating the track information displayed by the behavior.
Declaration
public TrackInfoMode InfoMode { get; set; }
Property Value
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
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
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.
ShowIntersectionPoints
Gets or sets a value indicating whether a visual representation for all the intersection points will be displayed.
SnapMode
Gets or sets the how this behavior should snap to the closest to a physical location data points.
Declaration
public TrackBallSnapMode SnapMode { get; set; }
Property Value
Methods
GetIntersectionTemplate(DependencyObject)
Gets the DataTemplate instance for the specified object instance.
Declaration
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
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
protected override void OnChartUIUpdated()
Overrides
OnDetached()
This method is called when this behavior is removed from the chart.
Declaration
protected override void OnDetached()
Overrides
OnHoldCompleted(HoldingRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnHoldCompleted(HoldingRoutedEventArgs args)
Parameters
args
HoldingRoutedEventArgs
Overrides
OnHoldStarted(HoldingRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnHoldStarted(HoldingRoutedEventArgs args)
Parameters
args
HoldingRoutedEventArgs
Overrides
OnManipulationDelta(ManipulationDeltaRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs args)
Parameters
args
ManipulationDeltaRoutedEventArgs
Overrides
OnPointerEntered(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
Overrides
OnPointerExited(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
Overrides
OnPointerMoved(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnPointerMoved(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
Overrides
OnPointerPressed(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
Overrides
OnPointerReleased(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
Overrides
SetIntersectionTemplate(DependencyObject, DataTemplate)
Sets the DataTemplate instance for the specified object instance.
Declaration
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
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
public event EventHandler<TrackBallInfoEventArgs> TrackInfoUpdated
Event Value