Skip to content

Commit f3c9677

Browse files
ES-975464 - Modified the code changes and added the image
1 parent f79f2b6 commit f3c9677

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# How to bind selected items in WPF TreeView
1+
# How to Bind Selected Items in WPF TreeView?
22

3-
This repository describes how to bind selected items in WPF TreeView (SfTreeView).
3+
This repository describes how to bind selected items in [WPF TreeView](https://www.syncfusion.com/wpf-controls/treegrid) (SfTreeView).
44

55
TreeView support to select multiple items through binding the [SelectedItems](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.TreeView.SfTreeView.html#Syncfusion_UI_Xaml_TreeView_SfTreeView_SelectedItems) property from view model with `ObservableCollection<object>` type.
66

@@ -29,6 +29,7 @@ public class ViewModel : NotificationObject
2929
public ObservableCollection<Model> Items { get; set; }
3030

3131
public ObservableCollection<object> SelectedNodes { get; set; }
32+
3233
public ViewModel()
3334
{
3435
Items = new ObservableCollection<Model>();
@@ -86,4 +87,6 @@ public class ViewModel : NotificationObject
8687
SelectedNodes.Add(aus_state2);
8788
}
8889
}
89-
```
90+
```
91+
92+
![TreeView with two nodes selected by binding SelectedItems property](TreeViewWithTwoNodesSelected.png)

TreeViewWithTwoNodesSelected.png

25.4 KB
Loading

0 commit comments

Comments
 (0)