2 StackLayouts, 1 with padding, 1 to fit rest of screen

Alexander Blohmé 1 Reputation point
2022-10-29T22:00:37.01+00:00

How can I add a padding to 1 StackLayout and not the other one when having 2 StackLayouts? See the image, I want the map to expand all the way left & right, but retain the white box stack layout.

Any ideas?255375-screenshot-2022-10-29-at-235516.png

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,944 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alexander Blohmé 1 Reputation point
    2022-10-29T23:25:11.767+00:00

    I fixed it by using Grid !

    0 comments No comments