$npx -y skills add syncfusion/maui-ui-components-skills --skill syncfusion-maui-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 | - **Apply modern liquid glass effects** for premium translucent designs in high-end applications |
| 17 | |
| 18 | ## Component Overview |
| 19 | |
| 20 | - Interactive expand/collapse with single tap on header |
| 21 | - Fully customizable header and content view layouts |
| 22 | - Smooth animations with configurable duration and easing |
| 23 | - Event system for Expanding, Expanded, Collapsing, and Collapsed states |
| 24 | - Programmatic control via `IsExpanded` property |
| 25 | - Visual State Manager support for dynamic styling |
| 26 | - Header appearance customization (background, icon position, colors) |
| 27 | - Modern liquid glass effects (.NET 10+, macOS 26+, iOS 26+) |
| 28 | - Event cancellation for Expanding and Collapsing actions |
| 29 | - Platform-optimized rendering and animations |
| 30 | |
| 31 | ## Documentation and Navigation Guide |
| 32 | |
| 33 | ### Getting Started |
| 34 | 📄 **Read:** [references/getting-started.md](references/getting-started.md) |
| 35 | |
| 36 | When to read: First-time setup, installation, basic implementation |
| 37 | - Installing Syncfusion.Maui.Expander NuGet package |
| 38 | - Registering Syncfusion handler (ConfigureSyncfusionCore) |
| 39 | - Creating basic SfExpander instance |
| 40 | - Defining Header and Content views |
| 41 | - Using IsExpanded property to control initial state |
| 42 | - Complete invoice example with multiple expanders |
| 43 | - Running your first expander application |
| 44 | |
| 45 | ### Header and Content Customization |
| 46 | 📄 **Read:** [references/header-content-customization.md](references/header-content-customization.md) |
| 47 | |
| 48 | When to read: Customizing header and content sections with layouts and views |
| 49 | - Loading any UI view in Header and Content properties |
| 50 | - Using Grid layouts with icons and labels |
| 51 | - Icon integration with font families |
| 52 | - Multi-expander layouts (invoice with multiple sections) |
| 53 | - Best practices for content structure |
| 54 | - Avoiding common pitfalls (Label wrapping in containers) |
| 55 | |
| 56 | ### Animation and Events |
| 57 | 📄 **Read:** [references/animation-events.md](references/animation-events.md) |
| 58 | |
| 59 | When to read: Controlling animation behavior and handling expand/collapse events |
| 60 | - AnimationDuration property (default: 300ms) |
| 61 | - AnimationEasing property (Linear, SinOut, etc.) |
| 62 | - Programmatic control with IsExpanded property |
| 63 | - Expanding event: Triggered before expansion (cancellable) |
| 64 | - Expanded event: Triggered after expansion completes |
| 65 | - Collapsing event: Triggered before collapse (cancellable) |
| 66 | - Collapsed event: Triggered after collapse completes |
| 67 | - Event handler examples with cancellation logic |
| 68 | |
| 69 | ### Appearance and Styling |
| 70 | 📄 **Read:** [references/appearance-styling.md](references/appearance-styling.md) |
| 71 | |
| 72 | When to read: Customizing header appearance, colors, icons, and Visual State Manager styling |
| 73 | - HeaderIconPosition property (Start, End) |
| 74 | - HeaderBackground color customization |
| 75 | - HeaderIconColor customization |
| 76 | - Visual State Manager (VSM) states: Expanded, Collapsed, PointerOver, Normal |
| 77 | - Dynamic appearance changes based on expander state |
| 78 | - Complete VSM examples with color transitions |
| 79 | |
| 80 | ### Liquid Glass Effect |
| 81 | 📄 **Read:** [references/liquid-glass-effect.md](references/liquid-glass-effect.md) |
| 82 | |
| 83 | When to read: Applying modern translucent designs with adaptive color tinting |
| 84 | - When to use liquid glass effect (premium UX applications) |
| 85 | - Wrapping SfExpander inside SfGlassEffectView |
| 86 | - Setting EnableLiquidGlassEffect="True" on expander |
| 87 | - Using Background="Transparent" for glass effect |
| 88 | - Complete invoice example with liquid glass |
| 89 | - Platform requirements: .NET 10+, macOS 26+, iOS 26+ |
| 90 | - Multiple expanders with consistent glass effect |