Skip to main content

AccordionControl.ViewMode Property

Gets or sets how the AccordionControl displays its root items. This is a dependency property.

Namespace: DevExpress.Xpf.Accordion

Assembly: DevExpress.Xpf.Accordion.v24.2.dll

NuGet Package: DevExpress.Wpf.Accordion

Declaration

public AccordionViewMode ViewMode { get; set; }

Property Value

Type Description
AccordionViewMode

An AccordionViewMode enumeration value. The default is AccordionViewMode.Accordion.

Available values:

Name Description
Accordion

All root and children items are displayed.

NavigationPane

Only child items of a single root item specified by the AccordionControl.SelectedRootItem property are displayed.

Remarks

Use the ViewMode property to specify how the AccordionControl displays its root items: in navigation pane or as accordion root items.

WPF_Accordion_ViewMode

The AccordionControl displays the subitems of the selected root item in AccordionViewMode.NavigationPane mode. You can specify the selected root item using the AccordionControl.SelectedRootItem property.

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

Virtualization is not supported in the AccordionViewMode.NavigationPane mode.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ViewMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also