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

.NET MAUI Templated Rating

The RadTemplatedRating component is designed for cases where it is easier to provide a template (for example, an image) for the rating items instead of creating custom RadPathGeometry.

On top of the common Rating API, this component adds the following members:

  • ItemTemplate (DataTemplate)—Defines the template used in the rating item.
  • SelectedItemTemplate (DataTemplate)—Specifies the template used in the selected rating item.

Set both the ItemTemplate and SelectedItemTemplate templates.

Rating Template

The following example demonstrates how to define RadTemplatedRating in XAML:

<telerik:RadTemplatedRating AutomationId="templatedRating" ValueChanged="RadTemplatedRating_ValueChanged">
            <Image Source="unread.png" />
            <Image Source="success.png" />

See Also

In this article
Not finding the help you need?