By default, UniformGrid displays it's children as follows:
1 2 3
4 5 6
7 8 9
I want to be as follows:
1 4 7
2 5 8
3 6 9
Any ideas?
By default, UniformGrid displays it's children as follows:
1 2 3
4 5 6
7 8 9
I want to be as follows:
1 4 7
2 5 8
3 6 9
Any ideas?
Easiest must be to insert them in the order you want them to show up.
If you are using a UniformGrid as an ItemsPanel in a listbox and get the items through databinding, sort the collection you are data binding to your prefered order.
Finally, if you want to do it in the view, this link describes two ways: Building a Column-Major UniformGrid in WPF