# Semantic Containers Using the right container for the data type simplifies XAML and improves maintainability. `Zafiro.Avalonia` provides specialized controls for common layout patterns. ## 📦 HeaderedContainer Prefer `HeaderedContainer` over a `Border` or `Grid` when a section needs a title or header. ```xml ``` ### Key Properties: - `Header`: The content or string for the header. - `HeaderBackground`: Brush for the header area. - `ContentPadding`: Padding for the content area. ## ↔️ EdgePanel Use `EdgePanel` to position elements at the edges of a container without complex `Grid` definitions. ```xml ``` ### Slots: - `StartContent`: Aligned to the left (or beginning). - `Content`: Fills the remaining space in the middle. - `EndContent`: Aligned to the right (or end). ## 📇 Card A simple container for grouping related information, often used inside `HeaderedContainer` or as a standalone element in a list. ```xml ``` ## 📐 Best Practices - Use `Classes` to apply themed variants (e.g., `Classes="Section"`, `Classes="Highlight"`). - Customize internal parts of the containers using templates in your styles when necessary, rather than nesting more controls.