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

Reorder in ListView many times create a disproportionate rounding in UWP #10280

Open
FernandoVeras opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@FernandoVeras
Copy link

FernandoVeras commented Jan 7, 2025

Describe the bug

When repeatedly reordering a single list item, at some point, the item ends up with extremely rounded borders, causing a visual glitch. This bug can be observed in the WinUI 2 Gallery itself

Image

I was able to replicate the issue by editing a style that includes any Windows.UI.Xaml.Controls control. If the style contains, within the ControlTemplate at the topmost level of the visual tree (highest z-index), a Windows.UI.Xaml.Shapes component, such as a Rectangle, the bug does not occur.

Bellow we can see many styles that will occur the bug

With borders
Image

Without borders
Image

Bellow we can't reproduce the bug, using Shapes

With Rectangle
Image

Why i can't use Shapes and "fix" the bug? The Shapes form don't have Corner radius, only RadiusX or RadiusX, so, we cant set TopLeft or TopRight CornerRadius to create a Style.

Steps to reproduce the bug

  1. Go to WinUI 2 Gallery
  2. Open List View with Drag drop example
  3. Choose a item
  4. Reorder the same item repeatedly

Expected behavior

The item still with original shape

Screenshots

NuGet package version

None

Windows version

Windows 10 (20H2): Build 19042, Windows 11 (24H2): Build 26100

Additional context

No response

@FernandoVeras FernandoVeras added the bug Something isn't working label Jan 7, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 7, 2025
@FernandoVeras FernandoVeras changed the title Reorder in ListView many times createa a disproportionate rounding in UWP Reorder in ListView many times create a disproportionate rounding in UWP Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant