Class ChartTooltip
Represents a content control that display a information about focused element.
Inheritance
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class ChartTooltip : ContentControl
Constructors
ChartTooltip()
Initializes a new instance of the ChartTooltip class.
Declaration
public ChartTooltip()
Fields
EnableAnimationProperty
The DependencyProperty for EnableAnimation property.
Declaration
public static readonly DependencyProperty EnableAnimationProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HorizontalAlignmentProperty
The DependencyProperty for System.Windows.HorizontalAlignment property.
Declaration
public static readonly DependencyProperty HorizontalAlignmentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HorizontalOffsetProperty
The DependencyProperty for HorizontalOffset property.
Declaration
public static readonly DependencyProperty HorizontalOffsetProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
InitialShowDelayProperty
The DependencyProperty for InitialShowDelay property.
Declaration
public static readonly DependencyProperty InitialShowDelayProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowDurationProperty
The DependencyProperty for ShowDuration property.
Declaration
public static readonly DependencyProperty ShowDurationProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TooltipMarginProperty
The DependencyProperty for TooltipMargin property.
Declaration
public static readonly DependencyProperty TooltipMarginProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
VerticalAlignmentProperty
The DependencyProperty for System.Windows.VerticalAlignment property.
Declaration
public static readonly DependencyProperty VerticalAlignmentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
VerticalOffsetProperty
The DependencyProperty for VerticalOffset property.
Declaration
public static readonly DependencyProperty VerticalOffsetProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Methods
GetEnableAnimation(UIElement)
Gets whether animation is enabled for tooltip or not.
Declaration
public static bool GetEnableAnimation(UIElement obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.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 |
---|---|---|
System.Windows.UIElement | obj | The Object |
Returns
Type | Description |
---|---|
System.Windows.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 |
---|---|---|
System.Windows.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 |
---|---|---|
System.Windows.DependencyObject | obj | The Dependency Object |
Returns
Type | Description |
---|---|
System.Int32 | Returns the show delay. |
GetShowDuration(DependencyObject)
Gets the duration of the tooltip text in seconds.
Declaration
public static int GetShowDuration(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The Dependency Object |
Returns
Type | Description |
---|---|
System.Int32 | Returns the show duration. |
GetTooltipMargin(UIElement)
Gets the margin of the tooltip.
Declaration
public static Thickness GetTooltipMargin(UIElement obj)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.UIElement | obj | The Object |
Returns
Type | Description |
---|---|
System.Windows.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 |
---|---|---|
System.Windows.UIElement | obj | The Object |
Returns
Type | Description |
---|---|
System.Windows.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 |
---|---|---|
System.Windows.DependencyObject | obj | The Dependency Object |
Returns
Type | Description |
---|---|
System.Double | Returns the vertical offset. |
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 |
---|---|---|
System.Windows.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 |
---|---|---|
System.Windows.UIElement | obj | The Object |
System.Windows.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 |
---|---|---|
System.Windows.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 |
---|---|---|
System.Windows.DependencyObject | obj | The Dependency Object |
System.Int32 | value | The Value |
SetShowDuration(DependencyObject, Int32)
Sets the duration to the tooltip.
Declaration
public static void SetShowDuration(DependencyObject obj, int value)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.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 |
---|---|---|
System.Windows.UIElement | obj | The Object |
System.Windows.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 |
---|---|---|
System.Windows.UIElement | obj | The Object |
System.Windows.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 |
---|---|---|
System.Windows.DependencyObject | obj | The Dependency Object |
System.Double | value | The Value |