menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartBehavior - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartBehavior

    Serves as a base class for all chart behaviors.

    Inheritance
    System.Object
    ChartBehavior
    ChartSelectionBehavior
    ChartTooltipBehavior
    ChartTrackballBehavior
    ChartZoomPanBehavior
    Namespace: Syncfusion.SfChart.XForms
    Assembly: Syncfusion.SfChart.XForms.dll
    Syntax
    public abstract class ChartBehavior : Element, IThemeElement
    Remarks

    You can handle the SfChart directly in Chart behavior, which will be helpful in designing the Chart application in MVVM pattern. You can add a custom behavior to the SfChart by inheriting a class from the ChartBehaviors.

    Constructors

    ChartBehavior()

    Initializes a new instance of the ChartBehavior class.

    Declaration
    public ChartBehavior()

    Properties

    Chart

    Gets the SfChart for the ChartBehavior.

    Declaration
    public SfChart Chart { get; }
    Property Value
    Type Description
    SfChart

    This property take SfChart instance as value.

    Methods

    DoubleTap(Single, Single)

    Called when pointer double tap in SfChart.

    Declaration
    protected virtual void DoubleTap(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX

    point x value.

    System.Single pointY

    point y value.

    OnTouchDown(Single, Single)

    Called when pointer touch down in SfChart.

    Declaration
    protected virtual void OnTouchDown(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX

    point x value.

    System.Single pointY

    point y value.

    OnTouchMove(Single, Single)

    Called when pointer touch move in SfChart.

    Declaration
    protected virtual void OnTouchMove(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX

    point x value.

    System.Single pointY

    point y value.

    OnTouchUp(Single, Single)

    Called when pointer touch up in SfChart.

    Declaration
    protected virtual void OnTouchUp(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX

    point x value.

    System.Single pointY

    point y value.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved