Back to Devexpress

Children Path

wpf-119810-controls-and-libraries-navigation-controls-accordion-control-data-binding-children-path.md

latest1.8 KB
Original Source

Children Path

  • Jun 07, 2019
  • 2 minutes to read

This topic describes how to bind the AccordionControl to data if all objects in your data source are the same type.

The table below shows the required properties:

MemberDescription
AccordionControl.ItemsSourceSpecifies the path to a collection of accordion items.
AccordionControl.ChildrenPathSpecifies the path to the property that contains an accordion item’s children.
AccordionControl.DisplayMemberPathSpecifies the path to the property whose value the accordion item’s header displays.

Complete the following steps to configure the binding:

  1. Specify the AccordionControl.ItemsSource property to bind the AccordionControl to data:

  2. Specify the AccordionControl.ChildrenPath property to build the accordion item hierarchy:

  3. Specify the AccordionControl.DisplayMemberPath property to display the required information in accordion item headers:

The image below shows the result:

Example