Rating view#1706
Conversation
pictos
left a comment
There was a problem hiding this comment.
Thanks for moving this forward, some code style points
TheCodeTraveler
left a comment
There was a problem hiding this comment.
Thanks @Eel2000! Could you fix these Find + Replace typos?
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
TheCodeTraveler
left a comment
There was a problem hiding this comment.
Thanks @Eel2000!
We should be using read-only properties instead of expression-bodied properties.
I also noted that we still need to add descriptive XML comments, but we should wait to complete these until the Proposal has been approved.
|
|
||
|
|
||
| /// <summary>Star Color Bindable property.</summary> | ||
| public static readonly BindableProperty FilledBackgroundColorProperty = BindableProperty.Create(nameof(FilledBackgroundColor), typeof(Color), typeof(RatingView), defaultValue: Colors.Yellow, propertyChanged: OnBindablePropertyChanged); |
There was a problem hiding this comment.
What is preferable Backgroud as Brush or BackgroundColor as Color?
Background allows more customization like gradient background
|
@dotnet-policy-service agree
@dotnet-policy-service agree |
|
Closing this PR in favor of the new RatingView PR: #2191 |
Description of Change
Adding the Rating view to the community toolkit, this is the initial code which requires some validations.
this code was ported from an existing repo with changes made based on suggestions from the team. It needs some validations(suggestions) before going any further. Unit tests, samples, and the code doc consolidation are not yet. Will be added after reviews and any new suggestion.
Linked Issues
PR Checklist
approved(bug) orChampioned(feature/proposal)Unit tests omitted because i wanted to validate first the existing code which was ported from an existing repo before writing
unit tests.
Need some code validation before adding the sample page in the samples app.
mainat time of PRAdditional information