agentsclimarketplace

Syncfusion wpf accordion

Skill syncfusion/wpf-ui-components-skills/skills/syncfusion-wpf-accordion

Skills for Syncfusion WPF controls. Enable AI-assisted development with comprehensive documentation, code examples, and best practices for 100+ UI controls including DataGrid, Charts, Scheduler, and more.

Install
npx -y skills add syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-accordion

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Implement Syncfusion WPF SfAccordion for collapsible and expandable panel layouts. Use this when working with accordion controls, expandable panels, or collapsible section navigation in WPF. Covers populating items declaratively or via data binding, selection modes (One/OneOrMore/ZeroOrOne/ZeroOrMore), programmatic selection, appearance customization (AccentBrush, HeaderTemplate, ContentTemplate), and theming with SfSkinManager.

SKILL.md

5.9 KB, as published. Nobody here has run it

Implementing SfAccordion (WPF)

When to Use This Skill

Use this skill when the user needs to:

  • Build collapsible/expandable section UI in WPF
  • Display categorized content with expand-on-demand behavior
  • Create Outlook-style, FAQ-style, or settings-panel accordion layouts
  • Bind a business object collection to an accordion
  • Control how many items can be expanded simultaneously
  • Customize accordion item headers, content, expander buttons, or animation

Component Overview

SfAccordion                          (ItemsControl)
└── SfAccordionItem  (×N)            (HeaderedContentControl)
    ├── Header      — always visible (collapsed & expanded)
    └── Content     — visible only when expanded (IsSelected=true)

Assembly: Syncfusion.SfAccordion.WPF
Namespace: Syncfusion.Windows.Controls.Layout
XAML Schema: http://schemas.syncfusion.com/wpf


Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly reference and NuGet setup
  • XAML and C# control creation
  • Basic SfAccordionItem with Header and Content
  • Themes with SfSkinManager

Populating Items

📄 Read: references/populating-items.md

  • Declarative items via Items collection
  • Data binding via ItemsSource
  • Model + ViewModel + ObservableCollection
  • DisplayMemberPath for quick headers
  • HeaderTemplate / HeaderTemplateSelector
  • ContentTemplate / ContentTemplateSelector

Selecting Items

📄 Read: references/selecting-items.md

  • SelectedIndex — select by index
  • SelectedItem — select by instance (TwoWay binding)
  • SelectedItems / SelectedIndices — read-only collections
  • IsSelected on individual items
  • SelectAll() / UnselectAll() methods
  • SelectedItemsChanged / SelectionChanged events

Selection Mode

📄 Read: references/selection-mode.md

  • One — exactly one expanded (default)
  • OneOrMore — multiple expanded, at least one required
  • ZeroOrOne — at most one, all can collapse
  • ZeroOrMore — multiple, all can collapse
  • Decision guide: choosing the right mode

Appearance and Styling

📄 Read: references/appearance-and-styling.md

  • AccentBrush — highlight color
  • HeaderTemplate / ContentTemplate
  • AccordionButtonStyle — expander arrow customization
  • ItemContainerStyle — per-item styling
  • Animation enable/disable
  • SfSkinManager themes

Quick Start

xmlns:syncfusion="http://schemas.syncfusion.com/wpf"

<syncfusion:SfAccordion Width="300" Height="200">
    <syncfusion:SfAccordionItem Header="WPF"
                                Content="Essential Studio for WPF"/>
    <syncfusion:SfAccordionItem Header="Silverlight"
                                Content="Essential Studio for Silverlight"/>
    <syncfusion:SfAccordionItem Header="WinRT"
                                Content="Essential Studio for WinRT" IsSelected="True"/>
</syncfusion:SfAccordion>
using Syncfusion.Windows.Controls.Layout;

SfAccordion accordion = new SfAccordion();
accordion.Items.Add(new SfAccordionItem { Header = "WPF",        Content = "Essential Studio for WPF" });
accordion.Items.Add(new SfAccordionItem { Header = "Silverlight", Content = "Essential Studio for Silverlight" });
accordion.Items.Add(new SfAccordionItem { Header = "WinRT",       Content = "Essential Studio for WinRT", IsSelected = true });
this.Content = accordion;

Common Patterns

ScenarioApproach
Multiple sections, one open at a timeSelectionMode="One" (default)
FAQ where multiple can be openSelectionMode="ZeroOrMore"
Data-driven contentItemsSource + HeaderTemplate + ContentTemplate
Highlight active item colorAccentBrush
Custom expander arrowAccordionButtonStyle on SfAccordionItem
Slow expand/collapse animationExpandableContentControl.Percentage in ItemContainerStyle
Track which items are expandedSelectedItemsChanged event

Key Properties

PropertyTypeDescription
SelectionModeAccordionSelectionModeOne / OneOrMore / ZeroOrOne / ZeroOrMore
SelectedIndexintIndex of most recently selected item
SelectedItemobjectInstance of most recently selected item
SelectedItemsread-onlyAll currently selected item instances
SelectedIndicesread-onlyAll currently selected item indices
ItemsSourceIEnumerableData collection binding
HeaderTemplateDataTemplateShared header template for all items
ContentTemplateDataTemplateShared content template for all items
HeaderTemplateSelectorDataTemplateSelectorPer-item header template
ContentTemplateSelectorDataTemplateSelectorPer-item content template
AccentBrushBrushAccent color for item highlight
ItemContainerStyleStyleStyle applied to each SfAccordionItem

SfAccordionItem properties:

PropertyDescription
HeaderAlways-visible item header
ContentVisible when item is expanded
IsSelectedtrue = expanded, false = collapsed
IsLockedRead-only; true when item cannot be collapsed
AccordionButtonStyleStyle for the expander toggle button

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.