Table of Contents

Class WrapLayout

Namespace
Nalu
Assembly
Nalu.Maui.Layouts.dll

Base class for wrap layouts that arrange children in sequential positions, wrapping to the next row or column as necessary.

public abstract class WrapLayout : Layout, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IBindableLayout, IVisualTreeElement, IWrapLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout
Inheritance
WrapLayout
Implements
Derived
Inherited Members

Fields

ExpandModeProperty

Bindable property for ExpandMode.

public static readonly BindableProperty ExpandModeProperty

Field Value

BindableProperty

ExpandRatioProperty

Attached bindable property for the expand ratio of a child view.

public static readonly BindableProperty ExpandRatioProperty

Field Value

BindableProperty

HorizontalSpacingProperty

Bindable property for HorizontalSpacing.

public static readonly BindableProperty HorizontalSpacingProperty

Field Value

BindableProperty

ItemsAlignmentProperty

Bindable property for ItemsAlignment.

public static readonly BindableProperty ItemsAlignmentProperty

Field Value

BindableProperty

VerticalSpacingProperty

Bindable property for VerticalSpacing.

public static readonly BindableProperty VerticalSpacingProperty

Field Value

BindableProperty

Properties

ExpandMode

Gets or sets the mode that defines how remaining space is distributed among items with an expand ratio greater than 0.

public WrapLayoutExpandMode ExpandMode { get; set; }

Property Value

WrapLayoutExpandMode

HorizontalSpacing

Gets or sets the horizontal spacing between items.

public double HorizontalSpacing { get; set; }

Property Value

double

ItemsAlignment

Gets or sets the alignment of items within each line.

public WrapLayoutItemsAlignment ItemsAlignment { get; set; }

Property Value

WrapLayoutItemsAlignment

Remarks

This is only effective when there's remaining space in the line after all items have been arranged.

VerticalSpacing

Gets or sets the vertical spacing between items.

public double VerticalSpacing { get; set; }

Property Value

double

Methods

GetExpandRatio(BindableObject)

Gets the expand ratio for the specified view.

public static double GetExpandRatio(BindableObject view)

Parameters

view BindableObject

The view to get the expand ratio from.

Returns

double

The expand ratio value.

SetExpandRatio(BindableObject, double)

Sets the expand ratio for the specified view.

public static void SetExpandRatio(BindableObject view, double value)

Parameters

view BindableObject

The view to set the expand ratio on.

value double

The expand ratio value.