Skip to main content
Version: 2025

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.

public class SalContextMenu : 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​

Instance member SalContextMenu(menu)​

Moves a menu branch's children into this context menu and assigns the branch's parent.

NameTypeDescription
menuMenuItemThe non-null menu branch to adapt.

Methods​

Protected member OnLoad(e)​

Updates SAL item states before raising the inherited event.

ParameterTypeDescription
eEventArgsThe event data.

Uses the source control's SAL and SQL contexts when available. State-update exceptions are traced and suppressed.

Protected member OnPopup(e)​

Updates SAL item states before raising the inherited event.

ParameterTypeDescription
eEventArgsThe event data.

Uses the source control's SAL and SQL contexts when available. State-update exceptions are traced and suppressed.