XAML UniformGrid Dynamic Row and Column

100 Views Asked by At

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?

0

There are 0 best solutions below