Represents a behavior that changes the IsSelected state of data points and series depending on user input.
Definition
Namespace:Telerik.Windows.Controls.ChartView
Assembly:Telerik.Windows.Controls.Chart.dll
Syntax:
public class ChartSelectionBehavior : ChartBehavior
Inheritance: objectInheritanceContextPropagatorChartBehaviorChartSelectionBehavior
Inherited Members
Constructors
public ChartSelectionBehavior()
Fields
DataPointSelectionModeProperty
DependencyProperty
Identifies the DataPointSelectionMode dependency property.
public static readonly DependencyProperty DataPointSelectionModeProperty
HitTestMarginProperty
DependencyProperty
Identifies the HitTestMargin dependency property.
public static readonly DependencyProperty HitTestMarginProperty
Properties
Gets or sets the ChartSelectionMode that controls the selection behavior of the data points within the chart series.
public ChartSelectionMode DataPointSelectionMode { get; set; }
HitTestMargin
Thickness
Gets or sets the Thickness struct that will be used when calculating the hit test rectangle.
public Thickness HitTestMargin { get; set; }
Methods
Removes the current selection within the chart.
CreateInstanceCore()
Freezable
When implemented in a derived class, creates a new instance of the Freezable derived class.
protected override Freezable CreateInstanceCore()
Freezable
The new instance.
Overrides:
Called when the behavior is added to the chart control.
protected override void OnAttached()
Overrides:
Called when chart template is changed.
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)
The old adorner layer.
adornerContainerCanvasThe adorner layer.
Overrides:
This method is called when this behavior is removed from the chart.
protected override void OnDetached()
Overrides:
Raises the event.
protected virtual void OnSelectionChanged(ChartSelectionChangedEventArgs args)
The ChartSelectionChangedEventArgs instance containing the event data.
Events
Occurs when the chart selection has changed.
public event EventHandler<ChartSelectionChangedEventArgs> SelectionChanged