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
ExpandRatioProperty
Attached bindable property for the expand ratio of a child view.
public static readonly BindableProperty ExpandRatioProperty
Field Value
HorizontalSpacingProperty
Bindable property for HorizontalSpacing.
public static readonly BindableProperty HorizontalSpacingProperty
Field Value
ItemsAlignmentProperty
Bindable property for ItemsAlignment.
public static readonly BindableProperty ItemsAlignmentProperty
Field Value
VerticalSpacingProperty
Bindable property for VerticalSpacing.
public static readonly BindableProperty VerticalSpacingProperty
Field Value
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
HorizontalSpacing
Gets or sets the horizontal spacing between items.
public double HorizontalSpacing { get; set; }
Property Value
ItemsAlignment
Gets or sets the alignment of items within each line.
public WrapLayoutItemsAlignment ItemsAlignment { get; set; }
Property Value
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
Methods
GetExpandRatio(BindableObject)
Gets the expand ratio for the specified view.
public static double GetExpandRatio(BindableObject view)
Parameters
viewBindableObjectThe 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
viewBindableObjectThe view to set the expand ratio on.
valuedoubleThe expand ratio value.