SalContextMenu
Namespace: PPJ.Runtime.Windows
Assembly: PPJ.Web.50 (5.0.0.0)
Adapts a menu branch into a context menu and evaluates SAL item state before display.
- C#
- VB.NET
public class SalContextMenu : ContextMenu
Public Class SalContextMenu
Inherits ContextMenu
Construction reparents the branch's existing child items; it does not clone them.
Example:
var branch = new SalPopupMenu();
branch.MenuItems.Add(new SalMenuItem { Text = "Open" });
var contextMenu = new SalContextMenu(branch);
Constructors
SalContextMenu(menu)
Moves a menu branch's children into this context menu and assigns the branch's parent.
| Name | Type | Description |
|---|---|---|
| menu | MenuItem | The non-null menu branch to adapt. |
Methods
OnLoad(e)
Updates SAL item states before raising the inherited event.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
Uses the source control's SAL and SQL contexts when available. State-update exceptions are traced and suppressed.
OnPopup(e)
Updates SAL item states before raising the inherited event.
| Parameter | Type | Description |
|---|---|---|
| e | EventArgs | The event data. |
Uses the source control's SAL and SQL contexts when available. State-update exceptions are traced and suppressed.