I just want to add ContextMenu for several objects that I create dynamically, but The only way I found is to create ContextMenu in runtime like this:
ContextMen
Additionaly you can put commands on the menuItem...
Like this:
CommandTarget can be very important, if you use your contextMenu on different controls. I often use the FindAncestor here, to identify the caller.