WPF Accordion - Navigation Pane Style (v18.1)

WPF Team Blog
25 April 2018

Our WPF Accordion Control was released as a modern alternative to the trusty Navigation Bar. The control is still subject to constant improvement, and for our upcoming v18.1 release, we introduced support for the Navigation Pane view style that was previously supported by the Navigation Bar. The style is achieved by taking advantage of integration with the Office Navigation Bar.

Here is what the Accordion control looks like by default:

Accordion Default Appearance

The Accordion leaves the display of its root items to the Office Navigation Bar, when the new integration is activated:

Integration with Office Navigation Bar

The Office Navigation Bar supports a Compact mode, like Microsoft Outlook:

Activate Compact Mode

With this mode active, the root items of the Accordion are shown as buttons at the bottom of the Accordion layout.

Button Display in Compact Mode

Activating the integration is very simple: just specify the property OfficeNavigationBar.NavigationClient:

<dxnav:OfficeNavigationBar NavigationClient="{Binding ElementName=accordion}"/>
<dxa:AccordionControl x:Name="accordion" CompactNavigation="True">
  <!-- ... -->
</dxa:AccordionControl>

Finally, the Peek Form feature of the Office Navigation Bar lends itself well to the new Navigation Pane style. When the user hovers the mouse over a root item, the Peek Form pops up:

Peek Form

Note that a Peek Form template needs to be specified using the property AccordionItem.PeekFormTemplate. This allows you to easily implement your own Peek Form functionality.

Free DevExpress Products – Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We’ll be happy to follow-up.
Tags
Noufal Aboobacker 1
Noufal Aboobacker 1

I would like to use this with WPF Prism Framework. Do you have an adapter for this?

19 October 2018
Alex Chuev (DevExpress)
Alex Chuev (DevExpress)

Hi Noufal,

We currently don't have a built-in PRISM adapter for the Accordion control (see Prism Adapters).

If you have questions about a custom PRISM adapter, feel free to contact our support team in the Support Center.

Thanks,

Alex

22 October 2018

Please login or register to post comments.