New to Telerik UI for .NET MAUI? Start a free 30-day trial
Configure the .NET MAUI Rating
Updated over 6 months ago
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
RadShapeRatingandRadTemplatedRatinginherit from theRatingBaseabstract 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.
XAML
<telerik:RadShapeRating Value="4" />
Add the namespace:
XAML
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 is5items.ItemsSpacing—Specifies the distance between the separate items in pixels. The default value is10px.
xaml
<telerik:RadShapeRating AutomationId="radRating"
Value="4"
ItemsCount="7"
ItemsSpacing="20" />