Provide suitable DataRow behavior when DataTable is not present#784
Provide suitable DataRow behavior when DataTable is not present#7849rnsr wants to merge 2 commits intoCommunityToolkit:mainfrom
Conversation
3933681 to
371b6d9
Compare
|
Was thinking about this scenario a bit more over the weekend, and I see a couple of directions:
|
|
The jagged layout of each row is exactly what I intended, because it can strongly recommend that the …But, as you pointed out, there’s less real practical benefit to that behavior, and I can admit that your idea is more practical. I’ll update the default behavior so that each child element in the |
…ld elements This added behavior just covers a corner case. If a user fails to place corresponding DataTable at correct position, displaying somethings is better than nothing. If there's no main controller to remember the column widths, each DataRow uses the full width of its parent element to provide equal widths to its child elements.
371b6d9 to
0bff904
Compare
|
Updated. To check the new |
Separate PR from #781
This added behavior just covers a corner case. If a user fails to place corresponding
DataTableat correct position, displaying somethings is better than nothing.Each rows layout their columns independent, because there's no main controller to remember the column widths, and then it looks like a horizontalStackPanel.If there's no main controller to remember the column widths, each DataRow uses the full width of its parent element to provide equal widths to its child elements.