devexpress/agent-skills/devexpress-winforms-accordion
Claude Code and agent skill by devexpress/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Expert skill for the DevExpress WinForms AccordionControl (DevExpress.XtraBars.Navigation.AccordionControl, DevExpress.Win.Navigation NuGet). Covers creating and populating accordion menus, data-driven element generation from collections, AccordionControlElement groups and items, content containers with embedded controls, header layout customization via HeaderTemplate, view types (Default accordion vs HamburgerMenu), Hamburger Menu display modes (Inline/Overlay/Minimal), minimize/expand state,…
Install
npx vskill@latest install devexpress/agent-skills/devexpress-winforms-accordionSKILL.md
DevExpress WinForms Accordion Control
AccordionControl is a side-navigation control that renders a hierarchical, expandable menu of groups and items. It is the recommended navigation control for new WinForms applications — more flexible than NavBarControl, and capable of serving as a full Hamburger Menu when ViewType = HamburgerMenu.
Groups (ElementStyle.Group) are expandable containers. Items (ElementStyle.Item) are clickable leaves that can optionally embed arbitrary WinForms controls inside an expandable content container. The hierarchy is unlimited in depth.
The control lives in the DevExpress.XtraBars.Navigation namespace and ships with the DevExpress.Win.Navigation NuGet package.
When to Use This Skill
- Setting up a side navigation menu in a WinForms application
- Adding groups, items, and content containers to an
AccordionControl - Generating menu items programmatically from data (lists, database queries, configuration)
- Switching the control to Hamburger Menu style and configuring display modes
- Customizing item headers, icons, appearance, and HTML-CSS templates
- Enabling search / filter functionality in the navigation menu
- Choosing between
AccordionControl,NavBarControl, and Hamburger Menu style - Integrating with
NavigationFrame,RibbonForm, orFluentDesignForm
Prerequisites & Installation
NuGet Package
Required Namespace Imports
Host Form
Always host AccordionControl on XtraForm (or RibbonForm / FluentDesignForm) — not on plain Form — to get correct skin-aware rendering.
Before You Start — Ask the Developer
If the host agent has a structured question-asking tool available, use it to ask these questions one at a time with clear options — for example, Claude Code's AskUserQuestion tool or GitHub Copilot's askQuestions tool. If no such tool is available, ask the questions directly in the chat response before generating code.
- Is the navigation structure fixed in code, or generated from data (list/database)?
- Should the sidebar always be visible, or should it collapse to an icon strip (Hamburger Menu)?
- Do items need embedded controls (DatePicker, ToggleSwitch, lists) inside them?
- Does the app have a
RibbonControlthat should share a title bar with the accordion? - How deep is the hierarchy (2 levels → consider
NavBarControl; 3+ → AccordionControl)? - Is there a search/filter requirement for the navigation items?
Documentation & Navigation Guide
Getting Started — Setup and Installation
Refer to references/getting-started.md (.NET 8+) or references/getting-started-dotnet-fw.md (.NET Framework 4.x) When you need to:
- Add
AccordionControlto a project for the first time - Choose the right host form type (
XtraForm,RibbonForm,FluentDesignForm) - Integrate with
RibbonForm.NavigationControl
Data Binding and Populating Items
Refer to references/data-binding.md When you need to:
- Understand that
AccordionControlhas noDataSource— items are always added manually - Generate items from a
List<T>, database result, or configuration - Use
BeginUpdate()/EndUpdate()for bulk population - Use
Tagto attach data payloads to items - Refresh items at runtime
When to Use AccordionControl vs NavBarControl vs Hamburger Menu
Refer to references/when-to-use.md When you need to:
- Choose between the three navigation controls
- Understand the feature differences (hierarchy depth, content containers, search, etc.)
- Migrate from
NavBarControltoAccordionControl
View Modes
Refer to references/view-modes.md When you need to:
- Switch between Accordion (
ViewType = Standard) and Hamburger Menu (ViewType = HamburgerMenu) styles - Configure Hamburger Menu display modes: Inline, Overlay, Minimal
- Use Footer root-element mode (tab-like root items at the bottom)
- Control expand/collapse behavior, animation, and multi-expand settings
AccordionControlElement Settings and Customization
Refer to references/items-and-customization.md When you need to:
- Configure individual groups and items (text, icons, shortcuts, visibility)
- Embed custom controls inside an item via
ContentContainer - Rearrange header content blocks with
HeaderTemplate - Apply per-element appearance settings
- Use HTML-CSS templates for rich custom rendering
- Add context buttons or custom draw elements
Search and Filtering
Refer to references/search.md When you need to:
- Enable the built-in search panel (
ShowFilterControl) - Connect an external
SearchControlto the accordion - Implement custom filter logic with
IFilterContent - Configure filter delay
- Enable AI-powered Smart Search
Quick Start
Minimal side-navigation with two groups:
Key API Surface
AccordionControl
| API | Description | |
|---|---|---|
Elements | Root-level AccordionControlElement collection | |
ViewType | Standard (accordion) or HamburgerMenu | |
OptionsHamburgerMenu.DisplayMode | Inline, Overlay, or Minimal | |
OptionsMinimizing.State | Normal or Minimized | |
RootDisplayMode | Default or Footer | |
ExpandElementMode | Single or Multiple | |
AllowItemSelection | Highlight selected item | |
SelectedElement | Get/set selected element | |
ShowFilterControl | Never, Always, or Auto | |
FilterDelay | Delay (ms) before filter applies | |
FilterControl | Custom IFilterContent filter control (use IFilterContentEx for FilterText) | |
FilterText | Active filter text (effective when FilterControl implements IFilterContentEx) | |
HtmlTemplates | HTML-CSS templates for all element types | |
BeginUpdate() / EndUpdate() | Suppress redraws during bulk changes | |
ExpandAll() / CollapseAll() | Expand/collapse all elements | |
ElementClick | Fired when a group or item is clicked | |
ExpandStateChanging / ExpandStateChanged | Expand/collapse lifecycle events | |
CustomDrawElement | Owner-draw event |
AccordionControlElement
| API | Description | |
|---|---|---|
Style | Group or Item | |
Text | Header caption | |
Name | Code/designer identifier | |
Tag | User payload | |
Enabled / Visible | Enable/show element | |
Expanded | Initial expand state | |
Elements | Child elements collection (groups only) | |
ContentContainer | Embedded control area (items only) | |
ImageOptions.ImageUri.Uri | SVG icon from DX catalog | |
HeaderControl | Custom WinForms control in the header | |
HeaderTemplate | Header block order and alignment | |
Appearance | Per-element visual styles | |
ShortcutKey | Keyboard shortcut (BarShortcut, e.g. new BarShortcut(Keys.F1)) |
Common Patterns
Pattern 1: Side Navigation with NavigationFrame
Authoring this in a `*.Designer.cs`: wrap both theAccordionControland theNavigationFrameinBeginInit()/EndInit()(both implementISupportInitialize). Do not wrap theNavigationPageobjects — they are panels; a page is added withnavFrame.Pages.Add(page)and set up withSuspendLayout()/ResumeLayout(). Casting aNavigationPagetoISupportInitializecompiles but throwsInvalidCastExceptionwhenInitializeComponentruns.
Pattern 2: Hamburger Menu (Overlay)
Pattern 3: Data-Driven Items
Pattern 4: Item with Embedded Control
Troubleshooting
| Symptom | Cause | Solution | |
|---|---|---|---|
| Control looks unstyled | Hosted on plain Form | Derive from XtraForm | |
| Items not visible | Elements collection empty | Populate in constructor or Form_Load | |
| Slow rendering with many items | No batch update | Wrap additions in BeginUpdate() / EndUpdate() | |
| Content container not expanding | Container not in accordion.Controls | Call accordion.Controls.Add(container) | |
| All groups collapse on one expand | ExpandElementMode = Single | Change to Multiple | |
| Hamburger button missing | ViewType = Standard | Set ViewType = HamburgerMenu | |
| Search panel not showing | ShowFilterControl = Never | Set to Always or Auto |
Constraints & Rules
Follow these rules in every interaction:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/dx-winforms/skills/devexpress-winforms-accordion/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 8
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/devexpress/agent-skills/devexpress-winforms-accordion)