Skip to content

Commit 73d8da8

Browse files
Apply suggestions from code review
Co-authored-by: dmitry-eliseev-devexpress <81766219+dmitry-eliseev-devexpress@users.noreply.github.com>
1 parent 86f1b7d commit 73d8da8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
# WPF Accordion Control - Bind to Hierarchical Data Structure
99

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.
1111

1212
## Implementation Details
1313

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.
1515

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:
1717

1818
```xaml
1919
<dxa:AccordionControl
@@ -23,13 +23,13 @@ In this example, the [AccordionControl](https://docs.devexpress.com/WPF/118347/c
2323
SelectionUnit="SubItem" />
2424
```
2525

26-
The `MainViewModel` exposes two bindable properties:
26+
`MainViewModel` exposes two bindable properties:
2727

28-
`Departments`the collection of `EmployeeDepartment` objects grouped by department name.
28+
`Departments`a collection of `EmployeeDepartment` objects grouped by department names.
2929

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).
3131

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:
3333

3434
```csharp
3535
var departments = DataHelper.GetEmployees()

0 commit comments

Comments
 (0)