New to Telerik UI for .NET MAUI? Start a free 30-day trial

Configuration

The Rating 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.

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

Rating Value

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

<telerik:RadShapeRating Value="4" />

Add the namespace:

xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"

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. The default value is 10px.
<telerik:RadShapeRating AutomationId="radRating"
                             Value="4"
                             ItemsCount="7"
                             ItemsSpacing="20" />

See Also

In this article
Not finding the help you need?