Method ShowPopupMenu
ShowPopupMenu(ContextMenu?, double, double)
Pops up the given menu at the specified coordinates, relative to this window, and returns control when the user has dismissed the menu.
public virtual void ShowPopupMenu(ContextMenu? menu, double x = -1, double y = -1)
Parameters
menu
ContextMenuThe menu to pop up.
x
doubleThe X position in dips where the menu will appear.
y
doubleThe Y position in dips where the menu will appear.
Remarks
If a menu item is selected, the corresponding menu event is generated and will be processed as usual. If coordinates are not specified (-1,-1), the current mouse cursor position is used.