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

A layout that position each child either horizontally or vertically and wraps them when there is no more space in the current orientation.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

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

Inheritance: objectRadWrapLayout

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

Constructors

Initializes a new instance of the RadWrapLayout class.

C#
public RadWrapLayout()

Fields

ItemHeightProperty

BindableProperty

Implements the bindable property that specify the height of each view during measure and layout.

C#
public static readonly BindableProperty ItemHeightProperty

ItemWidthProperty

BindableProperty

Implements the bindable property that specify the width of each view during measure and layout.

C#
public static readonly BindableProperty ItemWidthProperty

OrientationProperty

BindableProperty

Implements the bindable property that specify the orientation of RadWrapLayout.

C#
public static readonly BindableProperty OrientationProperty

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 the height with which each view will be measured and layout.

C#
public double ItemHeight { get; set; }

Implements: IRadWrapLayout.ItemHeight

Gets or sets the width with which each view will be measured and layout.

C#
public double ItemWidth { get; set; }

Implements: IRadWrapLayout.ItemWidth

Gets or sets the orientation of the RadWrapLayout.

C#
public Orientation Orientation { get; set; }

Implements: IRadWrapLayout.Orientation

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

C#
public bool StretchLastChild { get; set; }

Implements: IRadWrapLayout.StretchLastChild

Remarks:

When true and RadWrapLayout 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