Table of Contents

Method ShowPopupMenu

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 ContextMenu

The menu to pop up.

x double

The X position in dips where the menu will appear.

y double

The 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.