Support for Stacklayout's LayoutOptions like "FillAndExpand", "EndAndExpand" etc.. #29241
Unanswered
SumanKumarChava
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background:
We are working on Android & IOS mobile apps which have good amount of userbase. It was initally implemented using Xamarin Forms and later migrated to MAUI 7 after .Net 7 release. Since there are performance improvements in every new MAUI release, we have migrated our app to MAUI 9 recently.
Context
We are using Stacklayout extensively in our app code like more than 100 pages/controls within our app and we see the below warning at places where layoutOptions like "EndAndExpand", "FillAndExpand" etc., are used. It is a big task (in terms of development and testing) to convert all of those stacklayouts to Grid.
"The StackLayout expansion options are deprecated; please use a Grid instead."
I came across below MAUI doc where it was told that the "AndExpand" options are deprecated, but MAUI still supports it by converting the stacklayout to single row/column grid at runtime.
https://github.com/dotnet/maui/blob/main/docs/design/layout.md
"Note: Controls still supports "AndExpand" on StackLayout (but not VerticalStackLayout or HorizontalStackLayout). It does this by converting the StackLayout at runtime to a single column or single row Grid. Because that's all "AndExpand" was ever really doing in Forms."
Questions
1) Is there any plan in MAUI roadmap to remove support for those "AndExpand" layout options (or) discontinue the stacklayout in near future like in .Net10 or later ?
(We understood the deprecation is helpful to avoid confusion with layoutoptions and also to encourage the use of other layouts which are more performant, but the answer to above question will be necessary to plan the migration from Stacklayout to others in phase-wise manner)
Thanks in Advance.
Beta Was this translation helpful? Give feedback.
All reactions