- 1 year ago
How do I clear a RatingControl and make it 0 stars in WinUI 3?
Comment
1 / 1
To clear a RatingControl
in WinUI 3 and make it 0 stars, you can simply set its Value
property to 0. Here is an example:
mathematica<RatingControl x:Name="MyRatingControl" Value="3" />
In the above example, the Value
property of MyRatingControl
is set to 3. To clear the rating, you can set this property to 0 in your code-behind file:
mathematicaMyRatingControl.Value = 0;
This will clear the RatingControl
and make it 0 stars.