microsoft-ui-xaml
microsoft-ui-xaml copied to clipboard
Add a spacing property to GridView and ListView
Proposal: Add a spacing property to GridView and ListView
Add a spacing property to control the space between each item without setting margin manually.
Summary
Although setting margin does work and the default style does it, it results in extra unwanted space. This can be fixed by adding a negative margin to the ListView or GridView however I think it will be better if there was a built-in spacing property similar to StackPanel which also accounts for hidden elements.
Rationale
- More flexibility
- Remove the need for manually setting margin for each item
Scope
| Capability | Priority |
|---|---|
| This proposal will allow developers to set the spacing between items in a GridView or ListView without setting margin for each item | Must |
@anawishnoff FYI
Having separate VerticalSpacing and HorizontalSpacing properties would be particularly useful
To be consistent, maybe RowSpacing and ColumnSpacing
It's 2024 and we still have no plan for this?
We can inspire from Stackpanel Spacing feature.
Is there any update on this?
Is there any update on this?
Not yet