Table of Contents

Method RaiseIsModalChanging

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

RaiseIsModalChanging(bool, bool)

Called by the framework to raise the IsModalChanging event.

public bool RaiseIsModalChanging(bool oldIsModal, bool newIsModal)

Parameters

oldIsModal bool

The current value of IsModal.

newIsModal bool

The new value of IsModal (true = becoming modal/top, false = no longer modal).

Returns

bool

true if the change was canceled; otherwise false.

Remarks

This method implements the Cancellable Work Pattern. It calls the protected virtual method first, then raises the event if not canceled.