Class ChartSelectionBehavior
Namespace: Telerik.Maui.Controls.Compatibility.Chart
Assembly: Telerik.Maui.Controls.Compatibility.dll
Syntax
public class ChartSelectionBehavior : ChartBehavior, IParentElement, IChildElement
Constructors
ChartSelectionBehavior()
Declaration
public ChartSelectionBehavior()
Fields
CommandParameterProperty
Identifies the CommandParameter property.
Declaration
public static readonly BindableProperty CommandParameterProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
CommandProperty
Identifies the Command property.
Declaration
public static readonly BindableProperty CommandProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
DataPointSelectionModeProperty
Identifies the DataPointSelectionMode property.
Declaration
public static readonly BindableProperty DataPointSelectionModeProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
SeriesSelectionModeProperty
Identifies the SeriesSelectionMode property.
Declaration
public static readonly BindableProperty SeriesSelectionModeProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
Properties
Command
Gets or sets the Command that is invoked when selection changes.
Declaration
public ICommand Command { get; set; }
Property Value
System.Windows.Input.ICommand
|
CommandParameter
Gets or sets the CommandParameter that is passed to the Command property. The ChartSelectionBehavior instance is the default parameter.
Declaration
public object CommandParameter { get; set; }
Property Value
System.Object
|
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
|
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
System.Collections.Generic.IEnumerable<DataPoint>
|
SelectedSeries
Gets all the ChartSeries instances within the plot area that are currently selected.
Declaration
public IEnumerable<ChartSeries> SelectedSeries { get; }
Property Value
System.Collections.Generic.IEnumerable<ChartSeries>
|
SeriesSelectionMode
Gets or sets the ChartSelectionMode that controls the selection behavior of the chart series.
Declaration
public ChartSelectionMode SeriesSelectionMode { get; set; }
Property Value
ChartSelectionMode
|
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. |
OnSelectionChanged()
Events
SelectionChanged
Occurs when the IsSelected property of a ChartSeries and/or DataPoint instance changes.
Declaration
public event EventHandler SelectionChanged
Event Type
System.EventHandler
|