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

This is the base class for all chart behaviors.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

C#
public abstract class ChartBehavior : InheritanceContextPropagator

Inheritance: objectInheritanceContextPropagatorChartBehavior

Derived Classes: ChartCrosshairBehaviorChartPanAndZoomBehaviorChartSelectionBehaviorChartTooltipBehaviorChartTrackBallBehavior

Inherited Members InheritanceContextPropagator.CreateInstanceCore()InheritanceContextPropagator.FreezeCore(bool)

Constructors

C#
protected ChartBehavior()

Properties

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.

C#
protected Canvas AdornerContainer { get; set; }

Gets the RadChartBase instance to which this behavior is attached.

C#
public RadChartBase Chart { get; }

Methods

Called when the behavior is added to the chart control.

C#
protected virtual void OnAttached()

Called when chart template is changed.

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

The old adorner layer.

adornerContainerCanvas

The adorner layer.

Called when the behavior is removed from the chart control.

C#
protected virtual void OnDetached()

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

C#
protected virtual void OnUnloaded()