StackPanel Layout
Vertical and horizontal stacking with Auto, Fixed, and Stretch sizing modes.
Overview
StackPanel arranges children sequentially along a main axis. Each child's size
is controlled by StackPanel.SizeMode: Auto (preferred size),
Fixed (explicit via StackPanel.FixedSize), or
Stretch (fill remaining space equally).
Key Concepts
Orientation:Vertical(default) orHorizontalStackPanel.SizeMode:Auto,Fixed,StretchStackPanel.FixedSize: explicit size in rows/columns- Multiple
Stretchchildren divide remaining space equally - Nested StackPanels for complex layouts