You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> AutoLayout's `IsReverseZIndex` reverses the Z-order of children (which element appears on top when overlapping), but does not reverse the visual layout order like CSS `row-reverse` or `column-reverse`.
45
+
> **Understanding `IsReverseZIndex`**: AutoLayout's `IsReverseZIndex` property only affects the stacking order (z-index) of children—determining which element appears on top when elements overlap. It does **not** reverse the visual layout order of items.
46
+
>
47
+
> CSS `row-reverse` and `column-reverse` visually reverse item order (last item appears first). To achieve this in AutoLayout, you would need to either:
48
+
> - Reverse the order of children in XAML/code
49
+
> - Use data binding with a reversed collection
50
+
>
51
+
> **Example of what `IsReverseZIndex` does:**
52
+
> ```xml
53
+
> <!-- Items are still laid out left-to-right, but Item3 has highest z-index (appears on top if overlapping) -->
> <Borderx:Name="Item3" /> <!-- Z-Index: 0 (highest, in front) -->
58
+
> </utu:AutoLayout>
59
+
> ```
46
60
47
61
### Gap / Spacing
48
62
@@ -332,7 +346,27 @@ This mirrors Figma's "Absolute Position" feature, where an item can be positione
332
346
```
333
347
334
348
> [!WARNING]
335
-
> AutoLayout's `Padding` behavior matches Figma's implementation: the padding values that apply depend on the alignment settings. For example, items aligned to `Start` will respect start padding, while items aligned to `End` will respect end padding.
349
+
> AutoLayout's `Padding` behavior matches Figma's implementation: the padding values that apply depend on the alignment settings.
350
+
351
+
**Example - Padding behavior based on alignment:**
352
+
```xml
353
+
<!-- When PrimaryAxisAlignment="Start" (default), only start padding applies -->
0 commit comments