ClassChartSelectionBehavior
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
ChartSelectionBehavior()
Declaration
public ChartSelectionBehavior()
Fields
DataPointSelectionModeProperty
Identifies the DataPointSelectionMode dependency property.
Declaration
public static readonly DependencyProperty DataPointSelectionModeProperty
Field Value
DependencyProperty
HitTestMarginProperty
Identifies the HitTestMargin dependency property.
Declaration
public static readonly DependencyProperty HitTestMarginProperty
Field Value
DependencyProperty
Properties
DataPointSelectionMode
Gets or sets the ChartSelectionMode that controls the selection behavior of the data points within the chart series.
Declaration
public ChartSelectionMode DataPointSelectionMode { get; set; }
Property Value
HitTestMargin
Gets or sets the Thickness struct that will be used when calculating the hit test rectangle.
Declaration
public Thickness HitTestMargin { get; set; }
Property Value
Thickness
Methods
ClearSelection(bool, bool)
Removes the current selection within the chart.
CreateInstanceCore()
When implemented in a derived class, creates a new instance of the Freezable derived class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
Freezable
The new instance.
Overrides
OnAttached()
Called when the behavior is added to the chart control.
Declaration
protected override void OnAttached()
Overrides
OnChartTemplateChanged(Canvas, Canvas)
Called when chart template is changed.
Declaration
protected override void OnChartTemplateChanged(Canvas oldAdornerContainer, Canvas adornerContainer)
Parameters
oldAdornerContainer
Canvas
The old adorner layer.
adornerContainer
Canvas
The adorner layer.
Overrides
OnDetached()
This method is called when this behavior is removed from the chart.
Declaration
protected override void OnDetached()
Overrides
OnSelectionChanged(ChartSelectionChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnSelectionChanged(ChartSelectionChangedEventArgs args)
Parameters
args
ChartSelectionChangedEventArgs
The ChartSelectionChangedEventArgs instance containing the event data.
Events
SelectionChanged
Occurs when the chart selection has changed.
Declaration
public event EventHandler<ChartSelectionChangedEventArgs> SelectionChanged
Event Value