I am specifying a context menu within the ControlTemplate of a TreeViewItem as follows:
Try swaping CommandParameter
and Command
property setters. I'm not sure about the reason of such behavior, but is looks like it doesn't requery can execute on CommandParameter changed. Another way is of fixing is described here https://web.archive.org/web/20140528012720/http://compositewpf.codeplex.com/discussions/47338
Github issue tracking this exact issue here: https://github.com/dotnet/wpf/issues/3452