Skip to content

Inconsistent RatingControl's PlaceholderValue #10348

@AndrewKeepCoding

Description

@AndrewKeepCoding

Describe the bug

The RatingControl's PlaceholderValue is inconsistent:

PlaceholderValue Placeholder
1.5 Renders 1.5 star as expected
1 Renders 1 star as expected
0.5 Renders 1 star instead of 0.5 star
0 Renders 1 star instead of 0 star
-0.5 Renders 0 star (as expected?)
-1 Renders 0 star (as expected?)

Image

Steps to reproduce the bug

Create a plain WinUI app project and add the following code:

<RatingControl PlaceholderValue="1.5" />
<RatingControl PlaceholderValue="1" />
<RatingControl PlaceholderValue="0.5" />
<RatingControl PlaceholderValue="0" />
<RatingControl PlaceholderValue="-0.5" />
<RatingControl PlaceholderValue="-1" />

Expected behavior

PlaceholderValue Behavior
1.5 Renders 1.5 star
1 Renders 1 star
0.5 Renders 0.5 star
0 Renders 0 star
-0.5 Renders 0 star?
-1 Renders 0 star?

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002

Windows version

Windows 11 (23H2): Build 22631

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions