$npx -y skills add syncfusion/maui-toolkit-ui-components-skills --skill syncfusion-maui-toolkit-expanderImplements the Syncfusion .NET MAUI Expander (SfExpander) control for collapsible and expandable content sections. Use when working with expanders, collapsible sections, accordions, expandable panels, or expand/collapse functionality in .NET MAUI applications. Covers space-effici
| 1 | # Implementing .NET MAUI Expander (SfExpander) |
| 2 | |
| 3 | The Syncfusion .NET MAUI Expander control provides collapsible and expandable content sections for creating space-efficient layouts. Users can tap headers to reveal or hide content with smooth animations, making it ideal for accordion layouts, FAQs, and organized data displays. |
| 4 | |
| 5 | ## When to Use This Skill |
| 6 | |
| 7 | Use this skill when you need to: |
| 8 | |
| 9 | - **Implement collapsible sections** for space-efficient layouts and organized content display |
| 10 | - **Create accordion-style interfaces** for FAQs, settings panels, or grouped data |
| 11 | - **Build invoice or receipt views** with expandable sections (date, items, payment, address) |
| 12 | - **Design dynamic header/content layouts** where users tap to reveal more information |
| 13 | - **Add animated expand/collapse functionality** with customizable duration and easing |
| 14 | - **Handle expand/collapse events** for controlling user interactions and state management |
| 15 | - **Customize header appearance** with backgrounds, icon positions, and Visual State Manager styling |
| 16 | |
| 17 | ## Component Overview |
| 18 | |
| 19 | - Interactive expand/collapse with single tap on header |
| 20 | - Fully customizable header and content view layouts |
| 21 | - Smooth animations with configurable duration and easing |
| 22 | - Event system for Expanding, Expanded, Collapsing, and Collapsed states |
| 23 | - Programmatic control via `IsExpanded` property |
| 24 | - Visual State Manager support for dynamic styling |
| 25 | - Header appearance customization (background, icon position, colors) |
| 26 | - Event cancellation for Expanding and Collapsing actions |
| 27 | - Platform-optimized rendering and animations |
| 28 | |
| 29 | ## Documentation and Navigation Guide |
| 30 | |
| 31 | ### Getting Started |
| 32 | 📄 **Read:** [references/getting-started.md](references/getting-started.md) |
| 33 | |
| 34 | When to read: First-time setup, installation, basic implementation |
| 35 | - Installing Syncfusion.Maui.Toolkit NuGet package |
| 36 | - Registering Syncfusion handler (ConfigureSyncfusionToolkit) |
| 37 | - Creating basic SfExpander instance |
| 38 | - Defining Header and Content views |
| 39 | - Using IsExpanded property to control initial state |
| 40 | - Complete invoice example with multiple expanders |
| 41 | - Running your first expander application |
| 42 | |
| 43 | ### Header and Content Customization |
| 44 | 📄 **Read:** [references/header-content-customization.md](references/header-content-customization.md) |
| 45 | |
| 46 | When to read: Customizing header and content sections with layouts and views |
| 47 | - Loading any UI view in Header and Content properties |
| 48 | - Using Grid layouts with icons and labels |
| 49 | - Icon integration with font families |
| 50 | - Multi-expander layouts (invoice with multiple sections) |
| 51 | - Best practices for content structure |
| 52 | - Avoiding common pitfalls (Label wrapping in containers) |
| 53 | |
| 54 | ### Animation and Events |
| 55 | 📄 **Read:** [references/animation-events.md](references/animation-events.md) |
| 56 | |
| 57 | When to read: Controlling animation behavior and handling expand/collapse events |
| 58 | - AnimationDuration property (default: 300ms) |
| 59 | - AnimationEasing property (Linear, SinOut, etc.) |
| 60 | - Programmatic control with IsExpanded property |
| 61 | - Expanding event: Triggered before expansion (cancellable) |
| 62 | - Expanded event: Triggered after expansion completes |
| 63 | - Collapsing event: Triggered before collapse (cancellable) |
| 64 | - Collapsed event: Triggered after collapse completes |
| 65 | - Event handler examples with cancellation logic |
| 66 | |
| 67 | ### Appearance and Styling |
| 68 | 📄 **Read:** [references/appearance-styling.md](references/appearance-styling.md) |
| 69 | |
| 70 | When to read: Customizing header appearance, colors, icons, and Visual State Manager styling |
| 71 | - HeaderIconPosition property (Start, End) |
| 72 | - HeaderBackground color customization |
| 73 | - HeaderIconColor customization |
| 74 | - Visual State Manager (VSM) states: Expanded, Collapsed, PointerOver, Normal |
| 75 | - Dynamic appearance changes based on expander state |
| 76 | - Complete VSM examples with color transitions |