ClassChartSelectionBehavior
Represents a behavior that changes the IsSelected state of data points and series depending on user input.
Definition
Namespace:Telerik.UI.Xaml.Controls.Chart
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class ChartSelectionBehavior : ChartBehavior
Inheritance: objectChartBehaviorChartSelectionBehavior
Inherited Members
Constructors
ChartSelectionBehavior()
Initializes a new instance of the ChartSelectionBehavior class.
Declaration
public ChartSelectionBehavior()
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
SelectedPoints
Gets all the points from all series within the chart plot area that are currently selected.
Declaration
public IEnumerable<DataPoint> SelectedPoints { get; }
Property Value
SelectedSeries
Gets all the ChartSeries instances within the plot area that are currently selected.
Declaration
public IEnumerable<ChartSeries> SelectedSeries { get; }
Property Value
SeriesSelectionMode
Gets or sets the ChartSelectionMode that controls the selection behavior of the chart series.
Declaration
public ChartSelectionMode SeriesSelectionMode { get; set; }
Property Value
TouchTargetOverhang
Gets or sets the struct that will be used when calculating the touch rect.
Declaration
public Thickness TouchTargetOverhang { get; set; }
Property Value
Thickness
Methods
ClearSelection(bool, bool)
Removes the current selection within the chart.
OnTapped(TappedRoutedEventArgs)
Performs the core selection logic.
Declaration
protected override void OnTapped(TappedRoutedEventArgs args)
Parameters
args
TappedRoutedEventArgs
Overrides
Events
SelectionChanged
Occurs when the IsSelected property of a ChartSeries and/or DataPoint instance changes.