Articles in this section
Category / Section

How to change the color of rating items in .NET MAUI Rating?

1 min read

In the .NET MAUI Rating (SfRating), you can change the color for rated and unrated rating items by using the RatedFill and UnratedFill properties.

XAML

<ContentPage.Content>
    <rating:SfRating Value="3">
       <rating:SfRating.RatingSettings>
           <rating:RatingSettings RatedFill="Red" UnratedFill="Black"/>
       </rating:SfRating.RatingSettings>
   </rating:SfRating>
</ContentPage.Content>

C#

SfRating rating = new SfRating();
rating.Value = 3;
RatingSettings ratingSettings = new RatingSettings
{
   RatedFill = Colors.Red,
   UnratedFill = Colors.Black
};
rating.RatingSettings = ratingSettings;

OUTPUT

ratedcolorKB.jpg

Conclusion
I hope you enjoyed learning how to change the color of rating items in .NET MAUI Rating (SfRating).

You can refer to our .NET MAUI Rating feature tour page to learn about its other groundbreaking features. Explore our .NET MAUI Rating documentation to understand how to present and manipulate data.

For current customers, you can check out our .NET MAUI components from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Rating and other .NET MAUI components.

Please let us know in the comments section below if you have any queries or require clarification. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied