|
Window Framework for UI Toolkit v2.0.x
|
Configuration class for a runtime context menu. More...
Data Fields | |
| List< ContextMenuItem > | Items = new List<ContextMenuItem>() |
| Ordered mutable menu entries; keep the list and every entry nonnull. | |
| string | Title |
| Optional title displayed above the menu items; empty/null omits the title. | |
Configuration class for a runtime context menu.
This mutable configuration supplies the optional title and ordered item list to WindowFrameContextMenu.Show. It is not a ScriptableObject and does not render itself. Populate Items directly; this class has no AddItem, AddSeparator or submenu builder API. State predicates are evaluated when Show builds the menu, not continuously while open. For nonseparator visible entries provide nonnull IsDisabled and IsChecked delegates: the renderer invokes those directly. Null IsVisible means visible. Application callbacks remain application-owned; opening a menu does not validate the underlying operation.
| List<ContextMenuItem> GWG.WindowFramework.ContextMenuConfig.Items = new List<ContextMenuItem>() |
Ordered mutable menu entries; keep the list and every entry nonnull.
Show enumerates this list directly. Separators participate in the visible count; a separator-only configuration does not produce the no-options fallback message.
| string GWG.WindowFramework.ContextMenuConfig.Title |
Optional title displayed above the menu items; empty/null omits the title.