I'm using UniformGrid and it's making the items display horizontally. Is there a way to make it display vertically?
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="3" />
</ItemsPanelTemplate>
</ListView.ItemsPanel>
Any help would be greatly appreciated.
The WPF
UniformGridlayout is horizontal only, e.g.:Perhaps you could use a
WrapPanelinstead and just set theItemHeightandItemWidthto your desired grid size and set theOrientationtoOrientation.Vertical.Or you could create a derived
UniformGridto handleOrientation, there is a good example on MSDN.This one will display:
Is this what you mean?