Configure the .NET MAUI Rating
The Rating is presented by two components named RadShapeRating
and RadTemplatedRating
to provide various visualizations of the rating functionality.
The features described in this article are common for both RadShapeRating
and RadTemplatedRating
.
The
RadShapeRating
andRadTemplatedRating
inherit from theRatingBase
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 is5
items. -
ItemsSpacing
—Specifies the distance between the separate items in pixels. The default value is10px
.
<telerik:RadShapeRating AutomationId="radRating"
Value="4"
ItemsCount="7"
ItemsSpacing="20" />