Skip to main content

uno-toolkit-autolayout

Use AutoLayout control to arrange children with Figma-like spacing, alignment, and padding.

Jump to install

Source facts

Repository
unoplatform/studio
Last source activity
June 9, 2026 at 19:39
Detected SKILL.md language
English
Stars
10
Forks
1

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
uno-toolkit-autolayout
description
Use AutoLayout control to arrange children with Figma-like spacing, alignment, and padding.
when_to_use
Use when building layouts that mirror Figma Auto-Layout, arranging children in rows or columns with uniform spacing, using space-between distribution, per-child alignment overrides (CounterAlignment), or converting Figma designs to XAML.
metadata
{"author":"uno-platform","version":"2.3","category":"toolkit"}
# Uno Toolkit AutoLayout — Agent Skill ## Workflow > **Docs lookup:** call `uno_platform_docs_search(...)` first, then `uno_platform_docs_fetch(sourcePath="…")` using the `sourcePath` field from a result (a relative `.md` path; add the result's `anchor` for a section). Never pass a URL, a `.html` link, or a hand-built path. ### Step 1: Fetch the AutoLayout Documentation ``` uno_platform_docs_search("Uno Toolkit AutoLayout panel Figma spacing alignment") ``` Primary documentation page: - **AutoLayout Control**: `external/uno.toolkit.ui/doc/controls/AutoLayoutControl.md` Fetch the page: ``` uno_platform_docs_fetch(sourcePath="external/uno.toolkit.ui/doc/controls/AutoLayoutControl.md") ``` ### Step 2: For How-To Walkthroughs ``` uno_platform_docs_search("AutoLayout howto walkthrough example Figma") ``` ## Key Principles (Stable) **Container properties** (set on the `<utu:AutoLayout>` element itself): - `Orientation` — Horizontal or Vertical (primary axis) - `Spacing` — gap between children (like Figma auto-layout spacing) - `Justify` — SpaceBetween distribution - `PrimaryAxisAlignment` — alignment on the primary axis (`Start`, `Center`, `End`, `Stretch`) - `CounterAxisAlignment` — alignment on the cross axis (`Start`, `Center`, `End`, `Stretch`) - `Padding` — Figma-anchor-style padding (`Thickness`) **Per-child attached properties** (set on children of an `AutoLayout`, **note: NOT the same names as the container properties**): - `utu:AutoLayout.PrimaryAlignment` — override on primary axis (`Auto` or `Stretch`) - `utu:AutoLayout.CounterAlignment` — override on counter axis (`Start`, `Center`, `End`, `Stretch`) — **`CounterAlignment`, NOT `CounterAxisAlignment`** - `utu:AutoLayout.PrimaryLength` — fixed size along orientation axis (`double`) - `utu:AutoLayout.CounterLength` — fixed size perpendicular to orientation (`double`) - `utu:AutoLayout.IsIndependentLayout` — absolute positioning (`bool`) There is **no** `AutoLayout.Counterpart`, no `AutoLayout.SetCounterAxisAlignment(...)`, no `AutoLayout.Align`, no `AutoLayout.MainAxis`, no `AutoLayout.CrossAxis`. If unsure, the canonical surface is the table above — do not invent member names. **XAML namespace:** `xmlns:utu="using:Uno.Toolkit.UI"` ## Related Skills - [[uno-toolkit-responsive]] — Responsive layout based on screen size
View on GitHub