Commit d9a5085
Use
* Changed to using the BindableProperty SourceGen syntax.
* Completed changes to the RatingView so that it's now using the SG bindable properties, fixed failing tests and had to remove 2 as these no longer made sense. There was a hard coded Default which was added to the Defaults as well. Only issue is that the DefaultValue use from the SG only returns an Int no matter what the default Value should be like a Bool, Double, Color etc so there are CreateDefault Methods to resolve this until the SG is fixed and these can be removed...
* Update Formatting, Remove Unneeded DefaultValueCreatorMethods
* Fix Validators for Rating + MaximumRating, Use `PropertyChanging` for ArgumentOutOfRange Validation
* Remove Validators
* Remove `[RequiresUnreferencedCode]`
* `dotnet format`
* Add `[BindableProperty]` to `RatingView.FillOption`
* Update RatingView.shared.cs
---------
Co-authored-by: Brandon Minnick <[email protected]>[BindableProperty] for RatingView (#2964)1 parent e9e262d commit d9a5085
File tree
7 files changed
+177
-211
lines changed- src
- CommunityToolkit.Maui.Core/Primitives/Defaults
- CommunityToolkit.Maui.SourceGenerators.Benchmarks
- CommunityToolkit.Maui.SourceGenerators.Internal/Helpers
- CommunityToolkit.Maui.UnitTests
- Mocks
- Views/RatingView
- CommunityToolkit.Maui/Views/RatingView
7 files changed
+177
-211
lines changedLines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
6 | 2 | | |
7 | 3 | | |
8 | 4 | | |
9 | 5 | | |
10 | 6 | | |
11 | | - | |
| 7 | + | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
| |||
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
Lines changed: 5 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | 625 | | |
643 | 626 | | |
644 | 627 | | |
| |||
675 | 658 | | |
676 | 659 | | |
677 | 660 | | |
678 | | - | |
| 661 | + | |
679 | 662 | | |
680 | 663 | | |
681 | 664 | | |
| |||
0 commit comments