[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Collapse]Navigation Controls
   [Collapse]Accordion Control
     Getting Started
    [Expand]Accordion Items
    [Expand]Data Binding
     Expanding and Collapsing
     View Mode
     Collapse Mode
    [Expand]Visual Elements
   [Expand]Breadcrumb Control
   [Expand]Navigation Bar
    Office Navigation Bar
    TileNav Pane
    Tile Bar
   [Expand]Wizard Control
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

View Mode

The AccordionControl can display its root items in either a navigation pane or as accordion items.

Use the AccordionControl.ViewMode property to specify how the AccordionControl displays its root items.

Expanded NavigationPane View Mode

The AccordionControl displays the subitems of the selected root item in AccordionViewMode.NavigationPane mode.

Selecting Root Items

  • In code. You can specify the selected root item using the AccordionControl.SelectedRootItem property.
  • In runtime. End-users can select the required root item from the overflow panel displayed in the bottom of the accordion control.

Integration with the Office Navigation Bar

The AccordionControl automatically switches to AccordionViewMode.NavigationPane mode when integrated with the OfficeNavigationBar.

If the AccordionControl.CompactNavigation property is set to true, the original OfficeNavigationBar that is linked to the AccordionControl is hidden, and the Overflow Panel is displayed instead, as illustrated in the image below.

End-users can change the value of the AccordionControl.CompactNavigation property using the Compact Navigation checkbox in the OfficeNavigationBar's Navigation Options menu. This checkbox is only shown if the OfficeNavigationBar is linked to an AccordionControl.

The accordion root items that could not fit into Overflow Panel or Office Navigation Bar are displayed within the Popup Menu.

Overflow Panel

When the AccordionControl works in NavigationPane view mode and is collapsed, the Overflow Panel switches to a vertical orientation. End-users can change its height using the separator.

Peek Form

You can display additional information for each individual navigation bar item using a peek form. When an end-user hovers the mouse over a navigation bar item, a Peek Form pops up (see image below).

Use the item's AccordionItem.PeekFormTemplate property to specify a template used to render peek form content for this item.

Is this topic helpful?​​​​​​​