Method RequestStop | Terminal.Gui v2 (original) (raw)
Table of Contents
Namespace
Assembly
Terminal.Gui.dll
RequestStop(Toplevel?)
Stops the provided Toplevel, causing or the top
if provided.
public static void RequestStop(Toplevel? top = null)
Parameters
top
Toplevel
The Toplevel to stop.
Remarks
This will cause Run(Toplevel, Func<Exception, bool>?) to return.
Calling RequestStop(Toplevel?) is equivalent to setting theRunning property on the currently running Toplevel to false.