Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added RatingBar.InvertDirection to support inverting "fill" direction #3116

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

nicolaihenriksen
Copy link
Contributor

@nicolaihenriksen nicolaihenriksen commented Mar 1, 2023

Fixes #3113

Adds RatingBar.InvertDirection dependency property which can be used to "invert" the fill direction. This is probably most useful when you want to fill from bottom and up, but the implementation also supports horizontal orientation where it then fills from right to left (probably not something anyone needs as "the same" can be achieved with FlowDirection="RightToLeft").

RatingBarInvertDirection

Adds RatingBar.InvertDirection which is then used in all calculations regarding value, fractional value, preview offsets (X and Y), and rating bar button gradient.
@nicolaihenriksen nicolaihenriksen marked this pull request as ready for review March 1, 2023 19:38
@nicolaihenriksen nicolaihenriksen requested a review from Keboo March 1, 2023 19:38
@Keboo Keboo added this to the 4.8.0 milestone Mar 2, 2023
@Keboo Keboo added release notes Items are likely to be highlighted in the release notes. enhancement labels Mar 2, 2023
@Keboo Keboo merged commit 4590c59 into master Mar 2, 2023
@Keboo Keboo deleted the fix3113 branch March 2, 2023 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement release notes Items are likely to be highlighted in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rating bar completed from bottom to top
2 participants