WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

Fix CornerRadius Mismatch Between GridViewItem and Its ItemTemplate

Open ghost1372 opened this issue 1 month ago • 6 comments

ItemTemplates.xaml uses an 8px corner radius, while the GridViewItem itself uses 4px. This difference is visible when hovering over the item.

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Before: image

After: image

ghost1372 avatar Nov 09 '25 13:11 ghost1372

Thank you @Zakariathr22 Good catch! I missed applying it earlier, it’s all fixed now.

ghost1372 avatar Nov 09 '25 18:11 ghost1372

Why not use the CornerRadius property directly? With Static resource for Overlay.

Jay-o-Way avatar Nov 23 '25 23:11 Jay-o-Way

Why not use the CornerRadius property directly? With Static resource for Overlay.

Since it's been 2 weeks, if I remember correctly I tried to set CornerRadius in GridViewItem, but it didn't work and I used lightweight styling.

ghost1372 avatar Nov 24 '25 11:11 ghost1372

/azp run

niels9001 avatar Nov 29 '25 08:11 niels9001

/azp run

marcelwgn avatar Dec 07 '25 15:12 marcelwgn

/azp run

ayushjai19 avatar Dec 08 '25 07:12 ayushjai19