docs-maui icon indicating copy to clipboard operation
docs-maui copied to clipboard

Additions to Layout Differences Documentation

Open dustin-wojciechowski opened this issue 11 months ago • 0 comments

Issue description

MAUI has been getting issues regarding the ColumnDefinitions of Grid, presumably from developers migrating their apps from Xamarin Forms to MAUI. Here is an example of such an issue: https://github.com/dotnet/maui/issues/10494#issuecomment-1269199076

In XF, when ColumnDefinition's width was set to auto, line breaks like word wrap and tail truncation would occur implicitly. In MAUI, they will not, as the column expands past the width of the screen to accommodate the child's content. The solution would be to change the ColumnDefintion width to either * or some value.

I know we have this documentation here for layout differences between the two frameworks: https://learn.microsoft.com/en-us/dotnet/maui/migration/layouts?view=net-maui-8.0

It would be helpful to developers migrating apps from Xamarin Forms to MAUI to have this information available.

dustin-wojciechowski avatar Mar 21 '24 17:03 dustin-wojciechowski