Class ChartSelectionBehavior
Represents a behavior that changes the IsSelected state of data points and series depending on user input.
Inherited Members
Namespace: Telerik.Windows.Controls.ChartView
Assembly: Telerik.Windows.Controls.Chart.dll
Syntax
public class ChartSelectionBehavior : ChartBehavior
Constructors
ChartSelectionBehavior()
Declaration
public ChartSelectionBehavior()
Fields
DataPointSelectionModeProperty
Identifies the DataPointSelectionMode dependency property.
Declaration
public static readonly DependencyProperty DataPointSelectionModeProperty
Field Value
System.Windows.DependencyProperty
|
HitTestMarginProperty
Identifies the HitTestMargin dependency property.
Declaration
public static readonly DependencyProperty HitTestMarginProperty
Field Value
System.Windows.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
ChartSelectionMode
|
HitTestMargin
Gets or sets the System.Windows.Thickness struct that will be used when calculating the hit test rectangle.
Declaration
public Thickness HitTestMargin { get; set; }
Property Value
System.Windows.Thickness
|
Methods
ClearSelection(Boolean, Boolean)
Removes the current selection within the chart.
Declaration
public void ClearSelection(bool dataPoints = true, bool chartSeries = true)
Parameters
System.Boolean
dataPoints
True to clear the selected state of each data point, false otherwise. |
System.Boolean
chartSeries
True to clear the selected state of each chart series, false otherwise. |
CreateInstanceCore()
When implemented in a derived class, creates a new instance of the System.Windows.Freezable derived class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
System.Windows.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
System.Windows.Controls.Canvas
oldAdornerContainer
The old adorner layer. |
System.Windows.Controls.Canvas
adornerContainer
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 SelectionChanged event.
Declaration
protected virtual void OnSelectionChanged(ChartSelectionChangedEventArgs args)
Parameters
ChartSelectionChangedEventArgs
args
The ChartSelectionChangedEventArgs instance containing the event data. |
Events
SelectionChanged
Occurs when the chart selection has changed.
Declaration
public event EventHandler<ChartSelectionChangedEventArgs> SelectionChanged
Event Type
System.EventHandler<ChartSelectionChangedEventArgs>
|