Skip to content

RatingControl from WinUI, with half stars - #4710

Merged
punker76 merged 4 commits into
developfrom
feat/ratingcontrol
Oct 19, 2026
Merged

punker76 merged 4 commits into
developfrom
feat/ratingcontrol

Conversation

@punker76

@punker76 punker76 commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

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 RatingItemFontInfo and RatingItemImageInfo. 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.

IsHalfStepEnabled goes 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.md names it.

…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.
@punker76 punker76 added this to the 3.0.0 milestone Oct 19, 2026
@punker76
punker76 marked this pull request as ready for review October 19, 2026 06:33
As Codacy asks. The coercion of MaxRating is a lambda now, so no parameter goes unused, and the field the tests replace is readonly.
@punker76
punker76 merged commit ebc98f7 into develop Oct 19, 2026
4 checks passed
@punker76
punker76 deleted the feat/ratingcontrol branch October 19, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant