Repository navigation
RatingControl from WinUI, with half stars - #4710
Merged
Merged
Conversation
…dows 10 and the WinUI look Ported from microsoft-ui-xaml together with its item infos for glyphs or images, the keyboard, the mouse and the automation peer. The colours of the Windows 10 and the WinUI look come from Microsoft's theme resources, and only the Windows 10 look lets the stars grow under the pointer, as WinUI 2 did. NOTICE.md names microsoft-ui-xaml for it.
With IsHalfStepEnabled the left half of a star gives a half and the keys count in halves. WinUI has nothing like it, so it is off by default.
As Codacy asks. The coercion of MaxRating is a lambda now, so no parameter goes unused, and the field the tests replace is readonly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The RatingControl of WinUI, ported to WPF, in the Metro, Windows 10 and WinUI look.
A row of stars to click or key a rating into, with a caption, a placeholder for an average, and glyphs or images per state through
RatingItemFontInfoandRatingItemImageInfo. The colours of the Windows 10 and the WinUI look come from Microsoft's theme resources, and only the Windows 10 look lets the stars grow under the pointer, as WinUI 2 did.IsHalfStepEnabledgoes beyond WinUI: the left half of a star gives a half and the keys count in halves. It is off by default.The port follows microsoft-ui-xaml, which is MIT licensed, and
NOTICE.mdnames it.