Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The .NET MAUI Dock Layout is a flexible layout container that allows UI elements to be docked to the top, bottom, left, or right edges of the container, or fill the remaining space. This layout is perfect for creating structured, adaptive user interfaces across devices.


.NET MAUI Dock Layout code example

Easily get started with the .NET MAUI Dock Layout using a few simple lines of XAML code, as demonstrated below. Also, explore this .NET MAUI Dock Layout example, which shows you how to render and configure the .NET MAUI Dock Layout.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:sf="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
             x:Class="DockLayoutGettingStarted.MainPage">
    <ContentPage.Content>
        <sf:SfDockLayout Margin="20">
            <Label Text="Left" WidthRequest="80" sf:SfDockLayout.Dock="Left" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Background="#a8e6af" />
            <Label Text="Top" HeightRequest="80" sf:SfDockLayout.Dock="Top" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Background="#a8e6cf" />
            <Label Text="Right"  WidthRequest="80"  sf:SfDockLayout.Dock="Right" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Background="#e0a8e6" />
            <Label Text="Bottom" HeightRequest="80"  sf:SfDockLayout.Dock="Bottom" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Background="#e6a8a8"/>
            <Label Text="None" MinimumHeightRequest="80" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" BackgroundColor="#dcefd8" />
        </sf:SfDockLayout>
    </ContentPage.Content>
</ContentPage>

Dock position

This control allows elements to be docked to specific edges of the layout container: top, bottom, left, or right. They can also fill the remaining space.

Dock position in .NET MAUI.


Expanding last child element in .NET MAUI Dock Layout.

Should expand last child

The ShouldExpandLastChild property allows the last child element in the Dock Layout to occupy the remaining available space, making it easier to create fill-style UIs without manual calculations.


Spacing

The Dock Layout allows users to configure spacing between child elements using the HorizontalSpacing and VerticalSpacing properties, allowing precise control of layout aesthetics.

Spacing in .NET MAUI Dock Layout.


Right-to-left language demonstrated in .NET MAUI Dock Layout.

Right-to-left (RTL)

The .NET MAUI Dock Layout control supports right-to-left layouts to mirror its docking logic automatically.




Struggling to decide on the right product?

Our comprehensive competitor comparison of .NET MAUI controls will guide you to the perfect choice.

tick-mark 95+ UI controls
tick-mark 200+ interactive .NET MAUI demos
tick-mark 2.2M+ downloads

Frequently Asked Questions

The Syncfusion® .NET MAUI Dock Layout provides the following features:

  • Dock elements to specific edges of the layout container: top, bottom, left, or right.
  • Configure spacing between child elements using the HorizontalSpacing and VerticalSpacing properties.

  • Create structured, adaptive user interfaces across devices.
  • One of the best .NET MAUI Dock Layout in the market, offering feature-rich UI to interact with the software.
  • Enjoy a simple configuration and API.

  • Use in any modern browser.
  • Take advantage of expansive learning resources such as demos and documentation to get started quickly with the .NET MAUI Dock Layout.

You can find our .NET MAUI Dock Layout demo here, which demonstrates how to render and configure the Dock Layout control.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.
Here are some of their experiences.

See Real Success Stories

Developers around the world trust Syncfusion’s Essential Studio to simplify complex projects and speed up delivery. With a vast library of UI controls, powerful SDKs, and reliable support, Essential Studio helps teams build enterprise-ready applications with confidence.

Read Our Customer Stories


Rated by users across the globe

Syncfusion .NET MAUI DockLayout Resources

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Up arrow icon