How can I help you?
ToolTip in Rating (SfRating)
17 Jan 20251 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
ToolTipPlacementproperty is set to None.
TopLeft
The tooltip will be displayed on top of the rating stars.
rating.TooltipPlacement = TooltipPlacement.TopLeft;
BottomRight
The tooltip will be displayed on bottom of the rating stars.
rating.TooltipPlacement = TooltipPlacement.BottomRight;
None
The tooltip will be disappeared when setting ToolTipPlacement to None.
rating.TooltipPlacement = TooltipPlacement.None;
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;