Building a Xamarin Forms UI - Layout Containers

Building a Xamarin Forms UI - Layout Containers is a practical deep dive into the basics of using Xamarin Forms to design and lay out a mobile app's user interface. Xamarin Forms offers several built-in layout frameworks for positioning UI elements on a screen. We look at four of the most common ones to see how they work and the pros and cons of using each. We start with StackLayout, then move on to AbsoluteLayout, Grid layout, and finish with RelativeLayout.


Source code


Hi, and welcome to this Building a Xamarin Forms UI course focusing on layout containers. This course looks at using XAML, extensible application markup language, to design a graphical user interface for a cross-platform mobile app. XAML is a declarative language based on XML syntax for designing a user interface and is suited to a model view view-model, MVVM, application structure. 

While there is no C# backend code in this course, this content assumes you have completed the Introduction to Mobile Development with Xamarin course and have set up your development environment. We will be using the emulators, either Android or iOS, to view the user interface via the Visual Studio hot reload feature.

My name is Hallam Webber, and I will be your instructor for this course. We welcome all comments and feedback, so please feel free to reach out and get in touch with us at with any feedback, positive or negative. Let's jump into XAML.

About the Author
Learning Paths

Hallam is a software architect with over 20 years experience across a wide range of industries. He began his software career as a  Delphi/Interbase disciple but changed his allegiance to Microsoft with its deep and broad ecosystem. While Hallam has designed and crafted custom software utilizing web, mobile and desktop technologies, good quality reliable data is the key to a successful solution. The challenge of quickly turning data into useful information for digestion by humans and machines has led Hallam to specialize in database design and process automation. Showing customers how leverage new technology to change and improve their business processes is one of the key drivers keeping Hallam coming back to the keyboard. 

Covered Topics