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.
- C#
- VB.NET
public class SalContextMenu : ContextMenu
Public Class SalContextMenu
Inherits 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
SalContextMenu(menu)
Moves the supplied menu's child items into a new context menu and connects popup-state updates.
| Name | Type | Description |
|---|---|---|
| menu | MenuItem | The non-null menu whose children become context-menu items. |
The child items are reparented, not cloned.