skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI UI for Xamarin

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Migrate to .NET MAUI
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ChartSelectionBehavior

Inheritance
System.Object
ChartElement
ChartBehavior
ChartSelectionBehavior
Inherited Members
ChartElement.OnPropertyChanged(String)
ChartElement.Key
Namespace: Telerik.XamarinForms.Chart
Assembly: Telerik.XamarinForms.Chart.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
Xamarin.Forms.BindableProperty

CommandProperty

Identifies the Command property.

Declaration
public static readonly BindableProperty CommandProperty
Field Value
Xamarin.Forms.BindableProperty

DataPointSelectionModeProperty

Identifies the DataPointSelectionMode property.

Declaration
public static readonly BindableProperty DataPointSelectionModeProperty
Field Value
Xamarin.Forms.BindableProperty

SeriesSelectionModeProperty

Identifies the SeriesSelectionMode property.

Declaration
public static readonly BindableProperty SeriesSelectionModeProperty
Field Value
Xamarin.Forms.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()

Raises the SelectionChanged event.

Declaration
public void 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

Sample Applications
  • Telerik Tagit
  • iOS Demo App
  • Android Demo App
Support Resources
  • iOS Wrappers
  • Android Wrappers
  • Xamarin.Forms SDK Examples
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.