====== TUI Layout ====== Anchoring-First Responsive Layout für TUI-Anwendungen. Anchoring ist der **Default-Modus** - jedes Control verhält sich korrekt bei Terminal-Resize ohne spezielle Container. ===== Grundprinzip ===== Anchoring-First bedeutet: - Terminal Resize darf Layout, Focus und Rendering nicht brechen - Controls behalten stabile räumliche Beziehungen - Vorhersagbare Expansion/Shrinking-Regeln ===== Anchor-Semantik ===== ==== Verfügbare Anchors ==== | Anchor | Bedeutung | ^ Left | Abstand zum linken Rand bleibt konstant | ^ Top | Abstand zum oberen Rand bleibt konstant | ^ Right | Abstand zum rechten Rand bleibt konstant | ^ Bottom | Abstand zum unteren Rand bleibt konstant | ==== Kombinationen ==== Default: Left + Top → Position bleibt stabil, Größe konstant Left + Right: → Breite dehnt/schrumpft mit Parent-Breite Top + Bottom: → Höhe dehnt/schrumpft mit Parent-Höhe Alle vier (Left + Top + Right + Bottom): → Rect dehnt sich in beide Richtungen Keine Anchors: → Behandeln wie Left + Top (keine "floating" Ambiguität) ==== PXAML Beispiele ====