Xamarin.Forms Layouts

Learn about layout classes and layout features in Xamarin.Forms.

  • Choose a Layout

    Learn about how the main layout classes in Xamarin.Forms position and size their children.
  • StackLayout

    Learn how to organize views in a one-dimensional stack, either horizontally or vertically.
  • Grid

    Learn how to organize views into rows and columns, which can have proportional or absolute sizes.
  • FlexLayout

    Learn how to organize views horizontally or vertically, with wrapping.
  • RelativeLayout

    Learn how to organize views by setting constraints, relative to properties of the layout or sibling views.
  • AbsoluteLayout

    Learn how to organize views by setting coordinate and size values, which can be proportional or absolute.
  • ScrollView

    Learn how to provide scrolling when a view doesn't fit within the bounds of the screen.
  • ContentView

    Learn how to use a ContentView to create a custom control.
  • Frame

    Learn how to wrap a view with a frame that can be configured with color, drop shadow, and other options.
  • LayoutOptions

    Learn how to define a view's alignment within its parent layout.
  • Margin and Padding

    Learn how to control the distance between an element and its adjacent elements, and its child elements.
  • Device Orientation

    Learn how to configure and respond to device orientation changes.
  • Tablet and Desktop Layout

    Learn how to optimize layout for tablet and desktop applications.
  • Bindable Layouts

    Learn how to enable layout classes to generate their content, and set its appearance, by binding to a collection of items.
  • Layout Compression

    Learn how to remove specific layout objects from the visual tree, in an attempt to improve page rendering performance.
  • Custom Layout

    Learn how to create an orientation-sensitive custom layout class.