Skip to content

[BUG] RatingView MaximumRating doesn't work above 10, but documented as valid for range 1 to 25 #2861

@jpritchard-isl

Description

@jpritchard-isl

Document range for MaximumRating is 1 to 25, but the code does not allow > 10, I have a use case for 15 and would like to see the maximum allow increased to 25 as documented or greater.
https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/ratingview#set-maximum-rating

Suggest amending RatingViewDefaults.shared.cs to public const int MaximumRatingLimit = 25;

https://github.com/CommunityToolkit/Maui/blob/19b6e1f047c6ef8fec9cc2dca3033f73246cad7f/src/CommunityToolkit.Maui.Core/Primitives/Defaults/RatingViewDefaults.shared.cs

Repro

https://github.com/jpritchard-isl/maui-communitytoolkit-ratingview-bug

Expected
See 15 symbols, 11 filled.

Actual
5 symbols shown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions