Class
ChartBehavior

This is the base class for all chart behaviors.

Definition

Namespace:Telerik.UI.Xaml.Controls.Chart

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public abstract class ChartBehavior : DependencyObject

Inheritance: objectChartBehavior

Derived Classes: ChartPanAndZoomBehaviorChartSelectionBehaviorChartTooltipBehaviorChartTrackBallBehavior

Constructors

ChartBehavior()

Declaration

cs-api-definition
protected ChartBehavior()

Properties

AdornerLayer

Gets the Canvas instance used by different behaviors to add some elements to the visual tree. Will be null if the behavior is not yet attached or the chart's template is not applied.

Declaration

cs-api-definition
protected Canvas AdornerLayer { get; }

Property Value

Canvas

Chart

Gets the RadChartBase instance to which this behavior is attached.

Declaration

cs-api-definition
public RadChartBase Chart { get; }

Property Value

RadChartBase

Methods

GetDataContext(Point, bool)

Gets ChartDataContext associated with a gives physical location.

Declaration

cs-api-definition
protected virtual ChartDataContext GetDataContext(Point physicalOrigin, bool findNearestPoints)

Parameters

physicalOrigin

Point

The relative physical position of the requested data context.

findNearestPoints

bool

True to find the nearest points, if no points are found on the requested physical location.

Returns

ChartDataContext

Returns ChartDataContext object holding information for the requested physical location.

OnAttached()

Called when the behavior is added to the chart control.

Declaration

cs-api-definition
protected virtual void OnAttached()

OnChartUIUpdated()

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

Declaration

cs-api-definition
protected virtual void OnChartUIUpdated()

OnDetached()

Called when the behavior is removed from the chart control.

Declaration

cs-api-definition
protected virtual void OnDetached()

OnDoubleTapped(DoubleTappedRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected virtual void OnDoubleTapped(DoubleTappedRoutedEventArgs args)

Parameters

args

DoubleTappedRoutedEventArgs

OnHoldCompleted(HoldingRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

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

Parameters

args

HoldingRoutedEventArgs

OnHoldStarted(HoldingRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

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

Parameters

args

HoldingRoutedEventArgs

OnLoaded()

Called when the owning RadChartBase instance is loaded in the visual tree.

Declaration

cs-api-definition
protected virtual void OnLoaded()

OnManipulationCompleted(ManipulationCompletedRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected virtual void OnManipulationCompleted(ManipulationCompletedRoutedEventArgs args)

Parameters

args

ManipulationCompletedRoutedEventArgs

OnManipulationDelta(ManipulationDeltaRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

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

Parameters

args

ManipulationDeltaRoutedEventArgs

OnManipulationStarted(ManipulationStartedRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected virtual void OnManipulationStarted(ManipulationStartedRoutedEventArgs args)

Parameters

args

ManipulationStartedRoutedEventArgs

OnPointerEntered(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

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

Parameters

args

PointerRoutedEventArgs

OnPointerExited(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

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

Parameters

args

PointerRoutedEventArgs

OnPointerMoved(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

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

Parameters

args

PointerRoutedEventArgs

OnPointerPressed(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

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

Parameters

args

PointerRoutedEventArgs

OnPointerReleased(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

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

Parameters

args

PointerRoutedEventArgs

OnPointerWheelChanged(PointerRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected virtual void OnPointerWheelChanged(PointerRoutedEventArgs args)

Parameters

args

PointerRoutedEventArgs

OnTapped(TappedRoutedEventArgs)

Handles the event of the owning RadChartBase instance.

Declaration

cs-api-definition
protected virtual void OnTapped(TappedRoutedEventArgs args)

Parameters

args

TappedRoutedEventArgs

OnUnloaded()

Called when the chart owner is removed from the element tree.

Declaration

cs-api-definition
protected virtual void OnUnloaded()