You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@
7
7
8
8
# WPF Accordion Control - Bind to Hierarchical Data Structure
9
9
10
-
This example binds [Accordion Control](https://docs.devexpress.com/WPF/118347/controls-and-libraries/navigation-controls/accordion-control) to hierarchical data structure.
10
+
This example binds [Accordion Control](https://docs.devexpress.com/WPF/118347/controls-and-libraries/navigation-controls/accordion-control) to a hierarchical data structure.
11
11
12
12
## Implementation Details
13
13
14
-
To display hierarchical data in the [AccordionControl](https://docs.devexpress.com/WPF/118347/controls-and-libraries/navigation-controls/accordion-control), bind the `ItemsSource` property to a collection that contains child items. Use the [ChildrenPath](https://docs.devexpress.com/WPF/DevExpress.Xpf.Accordion.AccordionControl.ChildrenPath) property to specify the name of the child collection.
14
+
To display hierarchical data in the [Accordion Control](https://docs.devexpress.com/WPF/118347/controls-and-libraries/navigation-controls/accordion-control), bind the `ItemsSource` property to a collection populated with child items. Use the [ChildrenPath](https://docs.devexpress.com/WPF/DevExpress.Xpf.Accordion.AccordionControl.ChildrenPath) property to specify the name of the collection.
15
15
16
-
In this example, the [AccordionControl](https://docs.devexpress.com/WPF/118347/controls-and-libraries/navigation-controls/accordion-control) is bound to the collection of departments. Each department contains the collection of employees:
16
+
In this example, the [Accordion Control](https://docs.devexpress.com/WPF/118347/controls-and-libraries/navigation-controls/accordion-control) is bound to a collection of departments. Each department contains a collection of employees:
17
17
18
18
```xaml
19
19
<dxa:AccordionControl
@@ -23,13 +23,13 @@ In this example, the [AccordionControl](https://docs.devexpress.com/WPF/118347/c
23
23
SelectionUnit="SubItem" />
24
24
```
25
25
26
-
The `MainViewModel` exposes two bindable properties:
26
+
`MainViewModel` exposes two bindable properties:
27
27
28
-
`Departments` – the collection of `EmployeeDepartment` objects grouped by department name.
28
+
`Departments` – a collection of `EmployeeDepartment` objects grouped by department names.
29
29
30
-
`SelectedEmployee` – the employee selected in the [AccordionControl](https://docs.devexpress.com/WPF/118347/controls-and-libraries/navigation-controls/accordion-control).
30
+
`SelectedEmployee` – the employee selected in the [Accordion Control](https://docs.devexpress.com/WPF/118347/controls-and-libraries/navigation-controls/accordion-control).
31
31
32
-
At runtime, the view model loads employee data, groups it by department, and assigns the first available employee to the `SelectedEmployee` property:
32
+
At runtime, the view model loads employee data, groups it by departments, and assigns the first available employee to the `SelectedEmployee` property:
0 commit comments