Enum WrapLayoutExpandMode
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Layouts.dll
Defines how remaining space is distributed among items in a IWrapLayout that have an expand ratio greater than 0.
public enum WrapLayoutExpandMode
Fields
Distribute = 0Adds remaining space among all items based on their expand ratio.
An expand ratio of 0 means the item will not receive any extra space (default).
DistributeProportionally = 1Adds the remaining space among all items proportionally to their current size and their expand ratio.
An expand ratio of 0 means the item will not receive any extra space (default).
Divide = 2After all items with no expand have been measured, divides the remaining space among all items with an expand ratio greater than 0.
Items are still placed in rows/columns based on their measured size. If an item's measured size exceeds the available space, it will wrap to the next row/column.
When dividing space, items will never shrink below their measured size. If an item's share of the remaining space is less than its measured size, it keeps its measured size and the remaining space is redistributed among other expanding items.