New to Telerik UI for .NET MAUIStart a free 30-day trial

A layout that position its children based on their Dock value relative to each other.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadDockLayout : Layout, IRadDockLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout

Inheritance: objectRadDockLayout

Implements: ICollection<IView>IContainerICrossPlatformLayoutIElementIEnumerableIEnumerable<IView>ILayoutIList<IView>IPaddingIRadDockLayoutISafeAreaViewITransformIView...

Constructors

Initializes a new instance of the RadDockLayout class.

C#
public RadDockLayout()

Fields

DockProperty

BindableProperty

Implements the attached property that represents the dock position of a view.

C#
public static readonly BindableProperty DockProperty

StretchLastChildProperty

BindableProperty

Implements the bindable property that specify if the last visible child should take remaining space.

C#
public static readonly BindableProperty StretchLastChildProperty

Properties

Gets or sets whether last visible child will be given the whole remaining space during layout.

C#
public bool StretchLastChild { get; set; }

Implements: IRadDockLayout.StretchLastChild

Remarks:

When true and RadDockLayout is given more size than needed the last visible child will be layout with the remaining size.

Methods

CreateLayoutManager()

ILayoutManager

C#
protected override ILayoutManager CreateLayoutManager()
Returns:

ILayoutManager

Gets dock value.

C#
public static Dock GetDock(BindableObject bindable)
Parameters:bindableBindableObject

The bindable whose dock value is read.

Returns:

Dock

The current dock value.

Gets dock value.

C#
public Dock GetDock(IView view)
Parameters:viewIView

The view whose dock value is read.

Returns:

Dock

The current dock value.

Implements: IRadDockLayout.GetDock(IView)

Sets the dock value.

C#
public static void SetDock(BindableObject bindable, Dock value)
Parameters:bindableBindableObject

The bindable whose dock to change.

valueDock

The new dock value.