Hello.
Needed to set node's context menu with menu items for some custom parameterized by the node itself. Using binding this task easily solves via specifying the parameter as menu's
PlacementTarget. But
DiagramMenuItem's
Command and
CommandParameter does not support binding (unlike the standard
MenuItem's ones). So what is a best way to solve the problem and not violate the MVVM pattern (commands are, as usual, defined in the VM)?