Interface IWrapLayout
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Layouts.dll
Defines the contract for a layout that arranges its children in sequential position from left to right and top to bottom, wrapping to the next line as necessary.
public interface IWrapLayout : ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout
- Inherited Members
Properties
ExpandMode
Gets the mode that defines how remaining space is distributed among items within the same line with an expand ratio greater than 0.
WrapLayoutExpandMode ExpandMode { get; }
Property Value
HorizontalSpacing
Gets the spacing between items horizontally.
double HorizontalSpacing { get; }
Property Value
ItemsAlignment
Gets the alignment of items within each line.
WrapLayoutItemsAlignment ItemsAlignment { get; }
Property Value
Remarks
This is only effective when there's remaining space in the line after all items have been arranged.
VerticalSpacing
Gets the spacing between items vertically.
double VerticalSpacing { get; }
Property Value
Methods
GetExpandRatio(IView)
Gets the expand ratio for the specified view.
double GetExpandRatio(IView view)
Parameters
viewIViewThe view to get the expand ratio from.
Returns
- double
The expand ratio value.