How can I retrieve the item that is selected in a WPF-treeview? I want to do this in XAML, because I want to bind it.
You might think that it is SelectedItem>
SelectedItem>
This property exists : TreeView.SelectedItem
But it is readonly, so you cannot assign it through a binding, only retrieve it