The context menu should be in only on instance, but the items can be modified in the handler of
System.Windows.Controls.ContextMenu.ContextMenuOpening
, if you use
Forms
. For WPF, it will be a handler of the event
System.Windows.Controls.ContextMenu.ContextMenuOpening
.
Please see my answer to a very similar question:
contextMenu based on xml element in treeView[
^]
—SA