Skip to main content

SalContextMenu

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.50 (5.0.0.0)

Builds a context menu from an existing menu's children and refreshes their SAL state in the source control's context.

public class SalContextMenu : ContextMenu

Example:

var source = new PPJ.Runtime.Windows.SalPopupMenu();
source.MenuItems.Add(new PPJ.Runtime.Windows.SalMenuItem { Text = "Refresh" });
using (var contextMenu = new PPJ.Runtime.Windows.SalContextMenu(source))
{
// Assign contextMenu to a control before displaying it.
}

Constructors

Instance member SalContextMenu(menu)

Moves the supplied menu's child items into a new context menu and connects popup-state updates.

NameTypeDescription
menuMenuItemThe non-null menu whose children become context-menu items.

The child items are reparented, not cloned.