Tooltip

8 May 2019 / 1 minute to read

Tooltip provides additional information about objects that are unfamiliar to users and are not directly displayed in UI. In the Xamarin.Forms SfRating control, tooltip shows the data of Value. It will be displayed when the mouse is hovered over the rating items and will be disappeared when a rating item is selected.

Set tooltip placement

Using the ToolTipPlacement property, you can define where the tooltip needs to be displayed. The TooTipPlacement property have the following three types:

*BottomRight
*None
*TopLeft

NOTE

By default, value of the ToolTipPlacement property is set to None.

TopLeft

The tooltip will be displayed on top of the rating stars.

rating.TooltipPlacement = TooltipPlacement.TopLeft;

Tooltip at top

BottomRight

The tooltip will be displayed on bottom of the rating stars.

rating.TooltipPlacement = TooltipPlacement.BottomRight;

Tooltip at bottom

None

The tooltip will be disappeared when setting ToolTipPlacement to None.

rating.TooltipPlacement = TooltipPlacement.None;

No tooltip

Set tooltip precision

The ToolTipPrecision property sets the number precisions to be displayed after decimal point in tooltip.

NOTE

The default value of this property is 1.

rating.TooltipPrecision = 6;

Tooltip Precision