alexa
menu

MAUI Toolkit

  • User Guide
  • Demos
  • Support

    Show / Hide Table of Contents

    Class SparkChartTrackballBehavior

    Enables trackball functionality for SparkCharts, allowing users to view data point information on touch interaction.

    Inheritance
    System.Object
    SparkChartTrackballBehavior
    Namespace: Syncfusion.Maui.Toolkit.SparkCharts
    Assembly: Syncfusion.Maui.Toolkit.dll
    Syntax
    public class SparkChartTrackballBehavior : Element, IThemeElement

    Constructors

    SparkChartTrackballBehavior()

    Initializes a new instance of the SparkChartTrackballBehavior class.

    Declaration
    public SparkChartTrackballBehavior()

    Fields

    LabelStyleProperty

    Identifies the LabelStyle bindable property.

    Declaration
    public static readonly BindableProperty LabelStyleProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    LineStyleProperty

    Identifies the LineStyle bindable property.

    Declaration
    public static readonly BindableProperty LineStyleProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    MarkerSettingsProperty

    Identifies the MarkerSettings bindable property.

    Declaration
    public static readonly BindableProperty MarkerSettingsProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    ShowLabelProperty

    Identifies the ShowLabel bindable property.

    Declaration
    public static readonly BindableProperty ShowLabelProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    ShowLineProperty

    Identifies the ShowLine bindable property.

    Declaration
    public static readonly BindableProperty ShowLineProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    ShowMarkersProperty

    Identifies the ShowMarkers bindable property.

    Declaration
    public static readonly BindableProperty ShowMarkersProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    LabelStyle

    Gets or sets the label style for the trackball label.

    Declaration
    public SparkChartLabelStyle LabelStyle { get; set; }
    Property Value
    Type
    SparkChartLabelStyle

    LineStyle

    Gets or sets the line style for the trackball vertical line.

    Declaration
    public SparkChartLineStyle LineStyle { get; set; }
    Property Value
    Type
    SparkChartLineStyle

    MarkerSettings

    Gets or sets the marker settings for customizing trackball markers.

    Declaration
    public SparkChartMarkerSettings MarkerSettings { get; set; }
    Property Value
    Type
    SparkChartMarkerSettings

    ShowLabel

    Gets or sets a value indicating whether to show the trackball label.

    Declaration
    public bool ShowLabel { get; set; }
    Property Value
    Type
    System.Boolean

    ShowLine

    Gets or sets a value indicating whether to show the trackball line.

    Declaration
    public bool ShowLine { get; set; }
    Property Value
    Type
    System.Boolean

    ShowMarkers

    Gets or sets a value indicating whether to show markers for the trackball.

    Declaration
    public bool ShowMarkers { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    Hide()

    Hides the trackball.

    Declaration
    public void Hide()

    OnBindingContextChanged()

    Updates binding context for nested objects.

    Declaration
    protected override void OnBindingContextChanged()

    Show(Single, Single)

    Shows the trackball at the specified touch position.

    Declaration
    public void Show(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX
    System.Single pointY
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved