DockLayout Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The DockLayout makes it easy to dock content in all four directions (top, bottom, left and right). This makes it a great choice in many situations, where you want to divide the screen into specific areas, especially because by default, the last element inside the DockLayout, unless this feature is specifically disabled, will automatically fill the rest of the space (center). Inspired by WPF DockPanel: https://docs.microsoft.com/dotnet/api/system.windows.controls.dockpanel?view=netframework-4.8
public class DockLayout : Xamarin.Forms.Layout<Xamarin.Forms.View>
- Inheritance
Constructors
DockLayout() |
Fields
DockProperty |
Backing BindableProperty for the Dock property. |
LastChildFillProperty |
Backing BindableProperty for the LastChildFill property. |
Properties
Dock |
Gets or sets in what direction the child element is docked. Attached property that needs to be set on children of the DockLayout. This is a bindable property. |
LastChildFill |
The default behavior is that the last child of the DockLayout takes up the rest of the space, this can be disabled setting the LastChildFill property to false. |
Methods
GetDock(BindableObject) |
For internal use by the Xamarin Community Toolkit. This method gets the Dock property on a child element. |
LayoutChildren(Double, Double, Double, Double) | |
OnMeasure(Double, Double) | |
SetDock(BindableObject, Dock) |
For internal use by the Xamarin Community Toolkit. This method sets the Dock property on a child element. |