Reputation: 11577
I feel attaching elements to Grid after defining row and columns is less intuitive. I understand it gives crisp idea of grids layout when its a complex layout. But when the layout is simple, I feel inline definition like Html's Table is more intuitive.
Upvotes: 0
Views: 1742
Reputation: 15999
You can get slightly closer to not defining the rows and columns by using a UniformGrid and then specifying either a number of rows or number of colums. This will then cause child elements to be automatically divided into the specified layout. E.g
<UniformGrid Columns="3">
<-- 6 children -->
</UniformGrid>
will split the children into a 3x2 evenly sized grid.
If you want to have things like autosizing columns etc then you probably need to look at one of the many DataGrid components out there
Upvotes: 2
Reputation: 80744
Upvotes: 0