$npx -y skills add syncfusion/maui-ui-components-skills --skill syncfusion-maui-docklayoutImplements Syncfusion .NET MAUI DockLayout (SfDockLayout) for arranging and docking child elements in defined areas. Use this for creating docking layouts, positioning UI elements at edges (top/bottom/left/right), building dashboard layouts, or arranging multi-region interfaces.
| 1 | # Implementing .NET MAUI DockLayout |
| 2 | |
| 3 | Guide users to implement Syncfusion .NET MAUI DockLayout (SfDockLayout), a versatile layout control that enables developers to arrange and dock child elements to specific edges (top, bottom, left, right) or center, providing a robust framework for designing complex user interfaces in mobile and desktop applications. |
| 4 | |
| 5 | ## When to Use This Skill |
| 6 | |
| 7 | Use this skill when users need to: |
| 8 | - **Create docking layouts** with elements positioned at specific edges |
| 9 | - **Build dashboard interfaces** with multiple regions (header, footer, sidebar, content) |
| 10 | - **Implement adaptive layouts** that respond to screen sizes and orientations |
| 11 | - **Position UI elements** at top, bottom, left, right, or center of a container |
| 12 | - **Configure spacing** between docked elements (horizontal and vertical) |
| 13 | - **Control last child expansion** to fill remaining space |
| 14 | - **Support Right-to-Left (RTL)** layouts for internationalization |
| 15 | - **Work with .NET MAUI** applications using Syncfusion components |
| 16 | |
| 17 | ## Component Overview |
| 18 | |
| 19 | The **SfDockLayout** control provides: |
| 20 | - **Flexible Docking**: Dock children to Top, Bottom, Left, Right, or None (center) |
| 21 | - **Adaptive Layouts**: Automatically adapts to various screen sizes and orientations |
| 22 | - **Customizable Spacing**: Configure horizontal and vertical spacing between elements |
| 23 | - **Last Child Expansion**: Option to expand the last child to fill remaining space |
| 24 | - **RTL Support**: Full Right-to-Left layout support for internationalization |
| 25 | - **Programmatic Control**: GetDock() and SetDock() methods for runtime manipulation |
| 26 | |
| 27 | ## Documentation and Navigation Guide |
| 28 | |
| 29 | ### Getting Started |
| 30 | 📄 **Read:** [references/getting-started.md](references/getting-started.md) |
| 31 | - Installing Syncfusion.Maui.Core NuGet package |
| 32 | - Registering Syncfusion Core handler |
| 33 | - Creating and initializing SfDockLayout |
| 34 | - Setting basic dock positions for child elements |
| 35 | - Complete working example with all dock positions |
| 36 | |
| 37 | ### Docking Features |
| 38 | 📄 **Read:** [references/docking-features.md](references/docking-features.md) |
| 39 | - Dock position options (Top, Bottom, Left, Right, None) |
| 40 | - Using Dock attached property in XAML |
| 41 | - Using Add() method with Dock parameter in C# |
| 42 | - GetDock() method to retrieve current position |
| 43 | - SetDock() method to change position programmatically |
| 44 | - Docking order and element layering |
| 45 | |
| 46 | ### Spacing and Layout |
| 47 | 📄 **Read:** [references/spacing-layout.md](references/spacing-layout.md) |
| 48 | - HorizontalSpacing property for gaps between elements |
| 49 | - VerticalSpacing property for vertical gaps |
| 50 | - ShouldExpandLastChild property behavior |
| 51 | - Controlling last child expansion (true/false) |
| 52 | - Layout scenarios and best practices |
| 53 | |
| 54 | ### Advanced Features |
| 55 | 📄 **Read:** [references/advanced-features.md](references/advanced-features.md) |
| 56 | - Right-to-Left (RTL) layout support |
| 57 | - FlowDirection property configuration |
| 58 | - Adaptive layouts for different screen sizes |
| 59 | - Handling orientation changes |
| 60 | - Sample projects and resources |