Table of Contents

Event IsModalChanged

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Raised after this runnable has become modal (top of stack) or ceased being modal.

event EventHandler<EventArgs<bool>>? IsModalChanged

Returns

EventHandler<EventArgs<bool>>
Raised after this runnable has become modal (top of stack) or ceased being modal.

Remarks

Subscribe to this event to perform post-activation logic (e.g., setting focus, updating UI state). When Value is true, the runnable became modal (top of stack). When false, the runnable is no longer modal (another runnable is on top).

This event follows the Terminal.Gui Cancellable Work Pattern (CWP).