The correct way would be to manifest the child/parent relationship in your view models and have your bindings work against the view model objects rather than the view objects.
An alternative would be to write a value converter that looks up the parent TreeViewItem
for a given TreeViewItem
and bind to SelectedItem
using that converter.
HTH,
Kent
Kent Boogaart
2010-04-05 10:19:06