Table of Contents

Event IsModalChanging

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

Raised when this runnable is about to become modal (top of stack) or cease being modal. Can be canceled by setting CancelEventArgs<T>.Cancel to true.

event EventHandler<CancelEventArgs<bool>>? IsModalChanging

Returns

EventHandler<CancelEventArgs<bool>>
Raised when this runnable is about to become modal (top of stack) or cease being modal. Can be canceled by setting CancelEventArgs<T>.Cancel to true.

Remarks

Subscribe to this event to participate in modal state transitions before they occur. When NewValue is true, the runnable is becoming modal (top of stack). When false, another runnable is becoming modal and this one will no longer receive input.

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