Binding SelectedItem in MVVM Pattern in WPF TreeViewAdv (Classic)

5 May 20211 minute to read

A new set of properties namely SelectedTreeItem have been defined to bind SelectedItem value for TreeViewAdv in MVVM pattern.

Use case scenario

Users can get the SelectedItem using SelectedTreeItem property in order to enable two way binding between SelectedItem property in View and SelectedTreeItem property of TreeViewAdv, without modifying the actual SelectedItem property of TreeViewAdv.

Property Description
SelectedTreeItem This can be used to bind the Selected TreeView Item to a property of MVVM sample.

Samples Location:

The samples are located in the following location: