CommunityToolkit / CommunityToolkit/Maui

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

Open
#2,861 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

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

Contributor guide

Open the contributing guide

Research direction

Start with src/CommunityToolkit.Maui.Core/Primitives/Defaults/RatingViewDefaults.shared.cs and compare its MaximumRatingLimit with the documented 1-to-25 range. Run the linked reproduction using a maximum rating of 15; the fix is complete when 15 symbols appear, with 11 filled.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend, mobile-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.