syncfusion-maui-toolkit-accordion

Implements Syncfusion .NET MAUI Accordion (SfAccordion) - a vertically collapsible panel with stacked headers for expanding/collapsing content. Use when working with accordions, collapsible panels, expandable lists, employee lists with details, or FAQ sections in .NET MAUI applications. Covers AccordionItem configuration, expand modes, and grouped content display.

Skill file

Preview skill file↓↑
---
name: syncfusion-maui-toolkit-accordion
description: Implements Syncfusion .NET MAUI Accordion (SfAccordion) - a vertically collapsible panel with stacked headers for expanding/collapsing content. Use when working with accordions, collapsible panels, expandable lists, employee lists with details, or FAQ sections in .NET MAUI applications. Covers AccordionItem configuration, expand modes, and grouped content display.
metadata:
  author: "Syncfusion Inc"
  version: "1.0.0"
---

# Implementing Syncfusion .NET MAUI Accordion

A comprehensive guide for implementing the Syncfusion .NET MAUI Accordion (SfAccordion) - a vertically collapsible panel control that allows users to expand or collapse one or multiple items simultaneously.

## When to Use This Skill

Use this skill when you need to:
- Implement collapsible/expandable content sections in .NET MAUI
- Display employee directories, contact lists, or detailed records
- Create FAQ sections with expandable answers
- Build settings panels with grouped options
- Show hierarchical data with expand/collapse behavior
- Implement vertical expander panels
- Bind accordion items to ObservableCollection data sources
- Customize accordion appearance with themes and Visual States
- Handle expansion/collapse events with validation

## Component Overview

The .NET MAUI Accordion provides a vertically stacked interface where each item consists of a header and content section. Users can tap headers to expand/collapse content, making it ideal for displaying hierarchical information, FAQs, employee directories, or any scenario requiring space-efficient grouped content display.

- Single or multiple item expansion modes
- Data binding with .NET MAUI BindableLayout
- Customizable animations (duration and easing)
- Rich appearance customization (colors, icons, Visual States)
- Event handling for expand/collapse actions
- Programmatic scroll control

## Documentation and Navigation Guide

### Getting Started
πŸ“„ **Read:** [references/getting-started.md](references/getting-started.md)
- Installation of Syncfusion.Maui.Toolkit NuGet package
- Handler registration with ConfigureSyncfusionToolkit()
- Basic SfAccordion setup in XAML and C#
- Creating AccordionItem with Header and Content
- Expand modes: Single, Multiple, MultipleOrNone
- Animation duration and easing customization
- Item spacing configuration
- Auto scroll position settings
- BringIntoView method for programmatic scrolling

### Data Binding with BindableLayout
πŸ“„ **Read:** [references/data-binding.md](references/data-binding.md)
- Creating data models with INotifyPropertyChanged
- Setting up ObservableCollection for accordion items
- Configuring BindingContext
- Using BindableLayout.ItemsSource for data binding
- Defining BindableLayout.ItemTemplate for item appearance
- Two-way binding with IsExpanded property
- Dynamic item generation from collections
- Complete employee list example with data binding

### Appearance Customization
πŸ“„ **Read:** [references/appearance-customization.md](references/appearance-customization.md)
- Header icon position (Start, End)
- Header background color customization
- Icon color customization
- Visual State Manager for state-based styling
  - Expanded and Collapsed states
  - Focused state for keyboard navigation
  - PointerOver state for hover effects
  - Normal state styling
- Complete Visual State styling examples

### Events and Interaction
πŸ“„ **Read:** [references/events.md](references/events.md)
- Expanding event (cancellable)
- Expanded event (completion notification)
- Collapsing event (cancellable)
- Collapsed event (completion notification)
- Event arguments: Cancel and Index properties
- Validation before expand/collapse
- Common event handling patterns

### Advanced Features
πŸ“„ **Read:** [references/advanced-features.md](references/advanced-features.md)
- Auto scroll position (Top, MakeVisible)
- BringIntoView for programmatic scrolling
- Grid layout considerations with Height=Auto
- HorizontalOptions and VerticalOptions best practices


Source

Creator's repository Β· syncfusion/maui-toolkit-ui-components-skills

View on GitHub β†—

Security

Security checks in progress
Results will appear here once audits complete
What this skill can do
Reads your filesConnects to the internetRuns code on your machine
Checked by 3 independent security firms
Does it try to trick the AI?Not yet checkedPending Β· Gen Agent Trust Hub
Does it sneak in hidden code?Not yet checkedPending Β· Socket
Does it have known bugs?Not yet checkedPending Β· Snyk