Method RequestStop | Terminal.Gui v1 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

RequestStop(Toplevel)

Stops running the most recent Toplevel or the top if provided.

public static void RequestStop(Toplevel top = null)

Parameters

top Toplevel

The toplevel to request stop.

Remarks

This will cause Run(Func<Exception, bool>) to return.

Calling RequestStop(Toplevel) is equivalent to setting the Running property on the currently running Toplevel to false.

Edit this page