SelectedIndexChangedof a WPF
TreeView, currently the only way (without using any particular framework) is to build your own behavior to achieve that, or bind, via a style the
IsSelectedproperty of the node to a property of the view model, but in this second case the side effect is that to find the selected item you need to visit the whole tree.
NewValueproperty of the event arguments is passed as the command parameter to the command, we currently support as placeholder:
$args: the routed event arguments;
$this: the WPF element the behavior is attached to;
$source: the source of the routed event;
$originalSource: the original source of the routed event;
RoutedEventproperty must be a valid WPF
WithCommandproperty must be a valid
AutoCommandBindingis not supported.