Skip to main content

AccordionControl.AutoExpandAllItems Property

Gets or sets whether all accordion items are expanded when the accordion control is initialized. This is a dependency property.

Namespace: DevExpress.Xpf.Accordion

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

NuGet Package: DevExpress.Wpf.Accordion

Declaration

public bool AutoExpandAllItems { get; set; }

Property Value

Type Description
Boolean

true, to expand all accordion items when the accordion control is initialized; otherwise, false.

Remarks

When the AutoExpandAllItems property is set to true, the accordion control will automatically expand all its items when:

  • the Accordion control is initialized
  • the control’s ItemsSource property is changed.

When a single item is changed in the data source, the item’s child nodes are expanded.

When the ChildrenPath and DisplayMemberPath properties are specified, and the bound data items implement INotifyPropertyChanged, the accordion items are expanded only when the items’ properties specified within ChildrenPath and DisplayMemberPath are changed.

Note

To enable expanding multiple items at once, the AccordionControl.ExpandMode property must be set to ExpandMode.Multiple or ExpandMode.MultipleOrNone.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AutoExpandAllItems 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