ClassChartBehavior
This is the base class for all chart behaviors.
Definition
Namespace:Telerik.UI.Xaml.Controls.Chart
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public abstract class ChartBehavior : DependencyObject
Inheritance: objectChartBehavior
Derived Classes:
Constructors
ChartBehavior()
Declaration
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
protected Canvas AdornerLayer { get; }
Property Value
Canvas
Chart
Gets the RadChartBase instance to which this behavior is attached.
Methods
GetDataContext(Point, bool)
Gets ChartDataContext associated with a gives physical location.
Declaration
protected virtual ChartDataContext GetDataContext(Point physicalOrigin, bool findNearestPoints)
Parameters
physicalOrigin
Point
The relative physical position of the requested data context.
findNearestPoints
True to find the nearest points, if no points are found on the requested physical location.
Returns
Returns ChartDataContext object holding information for the requested physical location.
OnAttached()
Called when the behavior is added to the chart control.
Declaration
protected virtual void OnAttached()
OnChartUIUpdated()
A callback from the owning RadChartBase instance that notifies for a completed UpdateUI pass.
Declaration
protected virtual void OnChartUIUpdated()
OnDetached()
Called when the behavior is removed from the chart control.
Declaration
protected virtual void OnDetached()
OnDoubleTapped(DoubleTappedRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnDoubleTapped(DoubleTappedRoutedEventArgs args)
Parameters
args
DoubleTappedRoutedEventArgs
OnHoldCompleted(HoldingRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnHoldCompleted(HoldingRoutedEventArgs args)
Parameters
args
HoldingRoutedEventArgs
OnHoldStarted(HoldingRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnHoldStarted(HoldingRoutedEventArgs args)
Parameters
args
HoldingRoutedEventArgs
OnLoaded()
Called when the owning RadChartBase instance is loaded in the visual tree.
Declaration
protected virtual void OnLoaded()
OnManipulationCompleted(ManipulationCompletedRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnManipulationCompleted(ManipulationCompletedRoutedEventArgs args)
Parameters
args
ManipulationCompletedRoutedEventArgs
OnManipulationDelta(ManipulationDeltaRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnManipulationDelta(ManipulationDeltaRoutedEventArgs args)
Parameters
args
ManipulationDeltaRoutedEventArgs
OnManipulationStarted(ManipulationStartedRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnManipulationStarted(ManipulationStartedRoutedEventArgs args)
Parameters
args
ManipulationStartedRoutedEventArgs
OnPointerEntered(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnPointerEntered(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
OnPointerExited(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnPointerExited(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
OnPointerMoved(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnPointerMoved(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
OnPointerPressed(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnPointerPressed(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
OnPointerReleased(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnPointerReleased(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
OnPointerWheelChanged(PointerRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnPointerWheelChanged(PointerRoutedEventArgs args)
Parameters
args
PointerRoutedEventArgs
OnTapped(TappedRoutedEventArgs)
Handles the event of the owning RadChartBase instance.
Declaration
protected virtual void OnTapped(TappedRoutedEventArgs args)
Parameters
args
TappedRoutedEventArgs
OnUnloaded()
Called when the chart owner is removed from the element tree.
Declaration
protected virtual void OnUnloaded()