Skip to content

Fluent2: ListViewItem/ListBoxItem Has Hardcoded Padding #10370

Closed
@robert-abeo

Description

@robert-abeo

Description

The DefaultListViewItemStyle (ListBoxItem, etc.) have hardcoded Margin/Padding. These are some of the most important properties to customize and should NOT be hard-coded. That said, this is an issue in upstream WinUI as well.

<Setter Property="Margin" Value="0,0,0,2" />
<Setter Property="Padding" Value="16,0,12,0" />

Reproduction Steps

See Fluent Theme

Expected behavior

Lightweight styling resources should exist for these properties as in other controls:

ListViewItemPadding at minimum.

Actual behavior

Re-templating is required to adjust padding of ListBoxItems/ListViewItems.

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

☑ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions