Ling
Ling

Reputation: 87

XAML UniformGrid Dynamic Row and Column

I would like to change my layout in uniform grid according to my item number. For an example, if there are 6 item the layout should be like this

0 0 0
0 0 0

which I have successfully made it. The problem is when the item is an odd number, for example, 7 item the layout should be like this

0  0  0  0
 0  0  0

what I made is just made the layout become like this

0 0 0 0
0 0 0

which is not the layout I want.

Is there any possible to done this in xaml uniform grid?

Upvotes: 0

Views: 101

Answers (1)

Intel
Intel

Reputation: 141

wrap the items into a list of items list, use multiple grids that align-up vertically.

Upvotes: 0

Related Questions