microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Add a spacing property to GridView and ListView

Open jaigak opened this issue 4 years ago • 7 comments

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

jaigak avatar Aug 02 '21 10:08 jaigak

@anawishnoff FYI

StephenLPeters avatar Aug 03 '21 23:08 StephenLPeters

Having separate VerticalSpacing and HorizontalSpacing properties would be particularly useful

mrlacey avatar Aug 07 '21 14:08 mrlacey

To be consistent, maybe RowSpacing and ColumnSpacing

harvinders avatar Aug 12 '21 07:08 harvinders

It's 2024 and we still have no plan for this?

HHaoWang avatar Mar 20 '24 05:03 HHaoWang

We can inspire from Stackpanel Spacing feature.

bogdan-patraucean avatar Apr 14 '24 21:04 bogdan-patraucean

Is there any update on this?

selastingeorge avatar Aug 08 '24 09:08 selastingeorge

Is there any update on this?

Not yet

Onur45500 avatar Oct 02 '24 07:10 Onur45500