-
So I have a question. I have two grids inside a stacklayout. I want the second grid to sit at the end of the page, so I use EndAndExpand, but I get this: LayoutOptions.EndAndExpand is obsolete: 'The StackLayout expansion options are deprecated; please use a Grid instead.' However, my question is, how do you tell the stacklayout to be fullscreen, so just using LayoutOptions.End will have the grid at the bottom of the page? Nothing except this so-called "obsolete" call works that I can find, without having to define a new grid to sit these grids inside, which is not ideal (due to styling applied on grids around margins, etc). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The "AndExpand" options from Forms were removed from .NET MAUI for performance and clarity reasons. Your options are
|
Beta Was this translation helpful? Give feedback.
-
@hartez this deprecation is only for StackLayout? or it applies to all other controls as well like Button, Label, Entry etc? |
Beta Was this translation helpful? Give feedback.
-
All controls. In Xamarin.Forms, It did nothing anyway, if parent was not a StackLayout. Expand was not meaningful inside any other layout. They each have their own way of controlling size. |
Beta Was this translation helpful? Give feedback.
The "AndExpand" options from Forms were removed from .NET MAUI for performance and clarity reasons.
Your options are