menu

Class ChartTooltip - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartTooltip

    Represents a content control that display a information about focused element.

    Inheritance
    System.Object
    ChartTooltip
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.Chart.WinUI.dll
    Syntax
    public class ChartTooltip : ContentControl

    Constructors

    ChartTooltip()

    Initializes a new instance of the ChartTooltip class.

    Declaration
    public ChartTooltip()

    Fields

    DurationProperty

    The DependencyProperty for Duration property.

    Declaration
    public static readonly DependencyProperty DurationProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    EnableAnimationProperty

    The DependencyProperty for EnableAnimation property.

    Declaration
    public static readonly DependencyProperty EnableAnimationProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    HorizontalAlignmentProperty

    The DependencyProperty for Microsoft.UI.Xaml.HorizontalAlignment property.

    Declaration
    public static readonly DependencyProperty HorizontalAlignmentProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    HorizontalOffsetProperty

    The DependencyProperty for HorizontalOffset property.

    Declaration
    public static readonly DependencyProperty HorizontalOffsetProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    InitialShowDelayProperty

    The DependencyProperty for InitialShowDelay property.

    Declaration
    public static readonly DependencyProperty InitialShowDelayProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    TooltipMarginProperty

    The DependencyProperty for TooltipMargin property.

    Declaration
    public static readonly DependencyProperty TooltipMarginProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    VerticalAlignmentProperty

    The DependencyProperty for Microsoft.UI.Xaml.VerticalAlignment property.

    Declaration
    public static readonly DependencyProperty VerticalAlignmentProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    VerticalOffsetProperty

    The DependencyProperty for VerticalOffset property.

    Declaration
    public static readonly DependencyProperty VerticalOffsetProperty
    Field Value
    Type
    Microsoft.UI.Xaml.DependencyProperty

    Methods

    GetDuration(DependencyObject)

    Gets the duration of the tooltip text in seconds.

    Declaration
    public static int GetDuration(DependencyObject obj)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject obj

    The Dependency Object

    Returns
    Type Description
    System.Int32

    Returns the show duration.

    GetEnableAnimation(UIElement)

    Gets whether animation  is enabled for tooltip or not.

    Declaration
    public static bool GetEnableAnimation(UIElement obj)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.UIElement obj

    The Object

    Returns
    Type Description
    System.Boolean

    Returns a value indicating whether the animation is enabled.

    GetHorizontalAlignment(UIElement)

    Gets the horizontal alignment for the tooltip.

    Declaration
    public static HorizontalAlignment GetHorizontalAlignment(UIElement obj)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.UIElement obj

    The Object

    Returns
    Type Description
    Microsoft.UI.Xaml.HorizontalAlignment

    Returns the horizontal alignment.

    GetHorizontalOffset(DependencyObject)

    Gets the horizontal offset value to position the tooltip.

    Declaration
    public static double GetHorizontalOffset(DependencyObject obj)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject obj

    The Dependency Object

    Returns
    Type Description
    System.Double

    Returns the horizontal offset.

    GetInitialShowDelay(DependencyObject)

    Gets the initial delay value to show the tooltip.

    Declaration
    public static int GetInitialShowDelay(DependencyObject obj)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject obj

    The Dependency Object

    Returns
    Type Description
    System.Int32

    Returns the show delay.

    GetTooltipMargin(UIElement)

    Gets the margin of the tooltip.

    Declaration
    public static Thickness GetTooltipMargin(UIElement obj)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.UIElement obj

    The Object

    Returns
    Type Description
    Microsoft.UI.Xaml.Thickness

    Returns the ChartTooltip margin.

    GetVerticalAlignment(UIElement)

    Gets the vertical alignment for the tooltip.

    Declaration
    public static VerticalAlignment GetVerticalAlignment(UIElement obj)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.UIElement obj

    The Object

    Returns
    Type Description
    Microsoft.UI.Xaml.VerticalAlignment

    Returns the vertical alignment.

    GetVerticalOffset(DependencyObject)

    Gets the vertical offset value to position the tooltip.

    Declaration
    public static double GetVerticalOffset(DependencyObject obj)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject obj

    The Dependency Object

    Returns
    Type Description
    System.Double

    Returns the vertical offset.

    SetDuration(DependencyObject, Int32)

    Sets the duration to the tooltip.

    Declaration
    public static void SetDuration(DependencyObject obj, int value)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject obj

    The Dependency Object

    System.Int32 value

    The Value

    SetEnableAnimation(UIElement, Boolean)

    Sets the value to enable/disable the tooltip animation.

    Declaration
    public static void SetEnableAnimation(UIElement obj, bool value)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.UIElement obj

    The Object

    System.Boolean value

    The Value

    SetHorizontalAlignment(UIElement, HorizontalAlignment)

    Sets the horizontal alignment to the tooltip.

    Declaration
    public static void SetHorizontalAlignment(UIElement obj, HorizontalAlignment value)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.UIElement obj

    The Object

    Microsoft.UI.Xaml.HorizontalAlignment value

    The Value

    SetHorizontalOffset(DependencyObject, Double)

    Sets the horizontal offset value to position the tooltip.

    Declaration
    public static void SetHorizontalOffset(DependencyObject obj, double value)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject obj

    The Dependency Object

    System.Double value

    The Value

    SetInitialShowDelay(DependencyObject, Int32)

    Sets the initial delay value to show the tooltip.

    Declaration
    public static void SetInitialShowDelay(DependencyObject obj, int value)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject obj

    The Dependency Object

    System.Int32 value

    The Value

    SetTooltipMargin(UIElement, Thickness)

    Sets the margin to the tooltip.

    Declaration
    public static void SetTooltipMargin(UIElement obj, Thickness value)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.UIElement obj

    The Object

    Microsoft.UI.Xaml.Thickness value

    The Value

    SetVerticalAlignment(UIElement, VerticalAlignment)

    Sets the vertical alignment to the tooltip.

    Declaration
    public static void SetVerticalAlignment(UIElement obj, VerticalAlignment value)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.UIElement obj

    The Object

    Microsoft.UI.Xaml.VerticalAlignment value

    The Value

    SetVerticalOffset(DependencyObject, Double)

    Sets the vertical offset value to position the tooltip.

    Declaration
    public static void SetVerticalOffset(DependencyObject obj, double value)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyObject obj

    The Dependency Object

    System.Double value

    The Value

    See Also

    Microsoft.UI.Xaml.Controls.ContentControl
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved