Class
RadDockLayout

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:

cs-api-definition
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

RadDockLayout()

Initializes a new instance of the RadDockLayout class.

Declaration

cs-api-definition
public RadDockLayout()

Fields

DockProperty

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

Declaration

cs-api-definition
public static readonly BindableProperty DockProperty

Field Value

BindableProperty

StretchLastChildProperty

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

Declaration

cs-api-definition
public static readonly BindableProperty StretchLastChildProperty

Field Value

BindableProperty

Properties

StretchLastChild

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

Declaration

cs-api-definition
public bool StretchLastChild { get; set; }

Property Value

bool

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()

Declaration

cs-api-definition
protected override ILayoutManager CreateLayoutManager()

Returns

ILayoutManager

GetDock(BindableObject)

Gets dock value.

Declaration

cs-api-definition
public static Dock GetDock(BindableObject bindable)

Parameters

bindable

BindableObject

The bindable whose dock value is read.

Returns

Dock

The current dock value.

GetDock(IView)

Gets dock value.

Declaration

cs-api-definition
public Dock GetDock(IView view)

Parameters

view

IView

The view whose dock value is read.

Returns

Dock

The current dock value.

Implements IRadDockLayout.GetDock(IView)

SetDock(BindableObject, Dock)

Sets the dock value.

Declaration

cs-api-definition
public static void SetDock(BindableObject bindable, Dock value)

Parameters

bindable

BindableObject

The bindable whose dock to change.

value

Dock

The new dock value.