You'll need to use a RelativeSource Binding
in order to reach the TreeView.SelectedItem
property from within the Trigger
. Try this Binding
for your CommandParameter
instead:
CommandParameter="{Binding SelectedItem,
RelativeSource={RelativeSource AncestorType={x:Type TreeView}}}"