WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

[Feature] ListViewExtensions to customize item margin and corner radius

Open huynhsontung opened this issue 2 years ago • 1 comments

Describe the problem

ListViewItem has a hardcoded margin and corner radius.

The corner radius is always 2

image

Customize corner radius to 8

image

The margin is always 2,4,2,4. Note that this is the margin between the item and the scrollviewer and cannot be set by overriding ListViewItem style

image

This is after the margin has been set to 0,2,0,2

image

Describe the solution

Add ItemCornerRadius and ItemMargin attached properties to ListViewExtensions

Alternatives

No response

Additional info

Retemplating ListViewItem doesn't work since ListViewItemPresenter does not respect CornerRadius or Padding/Margin

Help us help you

Yes, I'd like to be assigned to work on this item.

huynhsontung avatar Jan 27 '23 05:01 huynhsontung

Hello, 'huynhsontung! Thanks for submitting a new feature request. I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future!

ghost avatar Jan 27 '23 05:01 ghost