uno-toolkit-card

Installation
SKILL.md

Uno Toolkit CardContentControl — Agent Skill

Critical Rules

  • NEVER use Card — always use CardContentControl. The Card control has rigid predefined slots (HeaderContent, SubHeaderContent, AvatarContent, etc.) that constrain layout. CardContentControl gives full layout freedom via ContentTemplate.
  • NEVER use Border with CornerRadius to wrap content. This is the most common Border anti-pattern in generated XAML and the parser flags it as GRD1102. Always use CardContentControl instead — it provides correct elevation, corner radius, theming, and accessibility automatically.

Anti-pattern detection (matches GRD1102)

If you find yourself writing a <Border> that meets all of the following, stop and rewrite it as utu:CardContentControl:

  1. The Border has children (it is not self-closing).
  2. It sets CornerRadius to a non-zero value.
  3. It sets at least one of: Background, BorderBrush (with non-zero BorderThickness), or non-zero Padding.

That's a card. <Border CornerRadius="8" Background="..." Padding="16">…</Border> is a card written the wrong way.

Installs
1
First Seen
Sep 4, 2026