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

Fluent2: ListViewItem/ListBoxItem Has Hardcoded Padding #10370

Open
robert-abeo opened this issue Jan 30, 2025 · 0 comments
Open

Fluent2: ListViewItem/ListBoxItem Has Hardcoded Padding #10370

robert-abeo opened this issue Jan 30, 2025 · 0 comments

Comments

@robert-abeo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants