Class
ChartSelectionBehavior

Represents a behavior that handles selection of chart series and data points.

Definition

Namespace:Telerik.Maui.Controls.Compatibility.Chart

Assembly:Telerik.Maui.Controls.Compatibility.dll

Syntax:

cs-api-definition
public class ChartSelectionBehavior : ChartBehavior

Inheritance: objectChartElementChartBehaviorChartSelectionBehavior

Inherited Members ChartElement.OnPropertyChanged(string)ChartElement.Key

Constructors

ChartSelectionBehavior()

Declaration

cs-api-definition
public ChartSelectionBehavior()

Fields

CommandParameterProperty

Identifies the CommandParameter property.

Declaration

cs-api-definition
public static readonly BindableProperty CommandParameterProperty

Field Value

BindableProperty

CommandProperty

Identifies the Command property.

Declaration

cs-api-definition
public static readonly BindableProperty CommandProperty

Field Value

BindableProperty

DataPointSelectionModeProperty

Identifies the DataPointSelectionMode property.

Declaration

cs-api-definition
public static readonly BindableProperty DataPointSelectionModeProperty

Field Value

BindableProperty

SeriesSelectionModeProperty

Identifies the SeriesSelectionMode property.

Declaration

cs-api-definition
public static readonly BindableProperty SeriesSelectionModeProperty

Field Value

BindableProperty

Properties

Command

Gets or sets the Command that is invoked when selection changes.

Declaration

cs-api-definition
public ICommand Command { get; set; }

Property Value

ICommand

CommandParameter

Gets or sets the CommandParameter that is passed to the Command property. The ChartSelectionBehavior instance is the default parameter.

Declaration

cs-api-definition
public object CommandParameter { get; set; }

Property Value

object

DataPointSelectionMode

Gets or sets the ChartSelectionMode that controls the selection behavior of the data points within the chart series.

Declaration

cs-api-definition
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

cs-api-definition
public IEnumerable<DataPoint> SelectedPoints { get; }

Property Value

IEnumerable<DataPoint>

SelectedSeries

Gets all the ChartSeries instances within the plot area that are currently selected.

Declaration

cs-api-definition
public IEnumerable<ChartSeries> SelectedSeries { get; }

Property Value

IEnumerable<ChartSeries>

SeriesSelectionMode

Gets or sets the ChartSelectionMode that controls the selection behavior of the chart series.

Declaration

cs-api-definition
public ChartSelectionMode SeriesSelectionMode { get; set; }

Property Value

ChartSelectionMode

Methods

ClearSelection(bool, bool)

Removes the current selection within the chart.

Declaration

cs-api-definition
public void ClearSelection(bool dataPoints = true, bool chartSeries = true)

Parameters

dataPoints

bool

True to clear the selected state of each data point, false otherwise.

chartSeries

bool

True to clear the selected state of each chart series, false otherwise.

OnSelectionChanged()

Raises the SelectionChanged event.

Declaration

cs-api-definition
public void OnSelectionChanged()

Events

SelectionChanged

Occurs when the IsSelected property of a ChartSeries and/or DataPoint instance changes.

Declaration

cs-api-definition
public event EventHandler SelectionChanged

Event Value

EventHandler