Configuration

RadRating is presented by two components named RadShapeRating and RadTemplatedRating in order to provide various visualizations of the rating functionality.

The features described in this article are common for both RadShapeRating and RadTemplatedRating.

RadShapeRating and RadTemplatedRating inherit from the RatingBase abstract class that provides their common features.

Rating Value

RadRating exposes a Value property that is used to set and read the number of the selected rating items.

<telerikInput:RadShapeRating AutomationId="radRating"
                             Value="4" />

And the namespace:

xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.Maui.Controls.Compatibility"

Configuration Settings

  • ItemsCount: Defines the number of the items that are visualized in the rating control. The default value is 5 items;
  • ItemsSpacing: Specifies the distance between the separate items in pixels. Default value is 10px;
<telerikInput:RadShapeRating AutomationId="radRating"
                             Value="4"
                             ItemsCount="7"
                             ItemsSpacing="20" />

And the namespace:

xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.Maui.Controls.Compatibility"

See Also

In this article
Not finding the help you need?