Skip to content

Fluent2: ListViewItem/ListBoxItem Has Hardcoded Padding #10370

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

Closed
robert-abeo opened this issue Jan 30, 2025 · 0 comments · Fixed by #10469
Closed

Fluent2: ListViewItem/ListBoxItem Has Hardcoded Padding #10370

robert-abeo opened this issue Jan 30, 2025 · 0 comments · Fixed by #10469

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: ☑ Done
Development

Successfully merging a pull request may close this issue.

3 participants