DelegateCommand is not invoked in context menu
I can`t seem to get this right click popup menu to work. <TreeView Name="NavigationPanel" ItemsSource="{Binding NavigationList}" /> <Style TargetType="{x:Type TreeViewItem}" > <Setter Property="ContextMenu"> <Setter.Value> <ContextMenu DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TreeView}}, Path=DataContext}"> <MenuItem Header="Delete" Command="{Binding Path=CommandPopupClick}" CommandParameter="{Binding Path=SelectedItem}"/> <Separator /> <MenuItem Header="Properties" Command="{Binding Path=CommandPopupClick}" CommandParameter="{Binding Path