Skip to content

[Feature] ListViewExtensions to customize item margin and corner radius #4837

Open
@huynhsontung

Description

@huynhsontung

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request 📬A request for new changes to improve functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions