ChartTooltip
Provides the styleable and templatable host view for chart tooltip content.
Definition
Namespace:Telerik.Maui.Controls.Charts
Assembly:Telerik.Maui.Controls.dll
Syntax:
public sealed class ChartTooltip : RadBorderContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewChartTooltip
Implements:
Inherited Members
Fields
ArrowFillProperty
BindableProperty
Identifies the ArrowFill bindable property.
public static readonly BindableProperty ArrowFillProperty
ArrowMarginProperty
BindableProperty
Identifies the ArrowMargin bindable property.
public static readonly BindableProperty ArrowMarginProperty
ArrowPlacementProperty
BindableProperty
Identifies the ArrowPlacement bindable property.
public static readonly BindableProperty ArrowPlacementProperty
ArrowStrokeProperty
BindableProperty
Identifies the ArrowStroke bindable property.
public static readonly BindableProperty ArrowStrokeProperty
ArrowStrokeThicknessProperty
BindableProperty
Identifies the ArrowStrokeThickness bindable property.
public static readonly BindableProperty ArrowStrokeThicknessProperty
ContextProperty
BindableProperty
Identifies the Context bindable property.
public static readonly BindableProperty ContextProperty
FontAttributesProperty
BindableProperty
Identifies the FontAttributes bindable property.
public static readonly BindableProperty FontAttributesProperty
FontFamilyProperty
BindableProperty
Identifies the FontFamily bindable property.
public static readonly BindableProperty FontFamilyProperty
FontSizeProperty
BindableProperty
Identifies the FontSize bindable property.
public static readonly BindableProperty FontSizeProperty
TextColorProperty
BindableProperty
Identifies the TextColor bindable property.
public static readonly BindableProperty TextColorProperty
Properties
ArrowFill
Brush
Gets the brush that fills the tooltip arrow. It resolves like the tooltip body: Background when it is set, otherwise BackgroundColor. It is null when neither is set.
public Brush? ArrowFill { get; }
The value is recalculated when the background or border properties are assigned. It does not track changes made to a brush instance after it has been assigned.
ArrowMargin
Thickness
Gets the margin that moves the arrow over the border of the tooltip body it is attached to, so the border does not run across the base of the arrow. The value on the side facing the body is the negated ArrowStrokeThickness.
public Thickness ArrowMargin { get; }
Gets the side of the tooltip body that holds the arrow. The default is Bottom.
public ChartTooltipArrowPlacement ArrowPlacement { get; }
The chart sets this value according to where the tooltip is placed relative to the data point it describes.
ArrowStroke
Brush
Gets the brush that outlines the tooltip arrow. It resolves like the tooltip border: BorderBrush when it is set, otherwise BorderColor. It is null when neither is set.
public Brush? ArrowStroke { get; }
Gets the thickness of the arrow outline. It is the thickness of BorderThickness on the edge the arrow is attached to (see ArrowPlacement), or zero when ArrowStroke is null or the tooltip has no arrow.
public double ArrowStrokeThickness { get; }
Gets the point data currently displayed by the tooltip.
public ChartTooltipContext? Context { get; }
FontAttributes
FontAttributes
Gets or sets the tooltip font attributes. It applies to labels inside the default control template, including labels in a custom content template, unless the label sets its own font attributes.
public FontAttributes FontAttributes { get; set; }
Gets or sets the tooltip font family. It applies to labels inside the default control template, including labels in a custom content template, unless the label sets its own font family. When it is null, labels use the default font.
public string? FontFamily { get; set; }
Gets or sets the tooltip font size. It applies to labels inside the default control template, including labels in a custom content template, unless the label sets its own font size.
public double FontSize { get; set; }
TextColor
Color
Gets or sets the tooltip text color. It applies to labels inside the default control template, including labels in a custom content template, unless the label sets its own text color.
public Color? TextColor { get; set; }
Methods
protected override void OnPropertyChanged(string? propertyName = null)
Overrides: