This example demonstrates how to create a WPF Accordion Control and bind it to data using the ChildrenPath property.
- Bind the accordion control to a data source. To do this, use the AccordionControl.ItemsSource property.
- Specify the AccordionControl.ChildrenPath property to create item hierarchy.
- Set the AccordionControl.DisplayMemberPath property to a data field with strings to display them in item headers.
- MainWindow.xaml (VB: MainWindow.xaml)
- ViewModel.cs (VB: ViewModel.vb)