Class MenuOpeningEventArgs
An EventArgs which allows passing a cancelable menu opening event or replacing with a new MenuBarItem.
Inherited Members
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class MenuOpeningEventArgs : EventArgs
Constructors
| Edit this page View SourceMenuOpeningEventArgs(MenuBarItem)
Initializes a new instance of MenuOpeningEventArgs.
Declaration
public MenuOpeningEventArgs(MenuBarItem currentMenu)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuBarItem | currentMenu | The current MenuBarItem parent. |
Properties
| Edit this page View SourceCancel
Flag that allows the cancellation of the event. If set to true in the
event handler, the event will be canceled.
Declaration
public bool Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CurrentMenu
The current MenuBarItem parent.
Declaration
public MenuBarItem CurrentMenu { get; }
Property Value
| Type | Description |
|---|---|
| MenuBarItem |
NewMenuBarItem
The new MenuBarItem to be replaced.
Declaration
public MenuBarItem NewMenuBarItem { get; set; }
Property Value
| Type | Description |
|---|---|
| MenuBarItem |