6 Advanced layout concepts

This chapter covers

  • Using a Grid for advanced layouts
  • BindableLayout
  • AbsoluteLayout
  • Combining layouts to build rich UIs

So far, we’ve looked at Grid, HorizontalStackLayout and VerticalStackLayout, and FlexLayout, and you’ll likely find that nearly any UI you’re trying to achieve can be accomplished using these. But there are more layout options available in .NET MAUI.

Before we get into new layouts, we’ll revisit the Grid and see how we can apply it to more complex layouts. In chapter 5, we saw how to use it for a UI that naturally lends itself to a grid pattern, but it’s also often the best layout for arranging things that don’t initially seem to be a grid. We’ll work through an example of a UI using Grid in a real-world ...

Get .NET MAUI in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.