Table of Contents

Method RequestStop

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

RequestStop()

Requests that the application stop running.

public void RequestStop()

RequestStop(Toplevel?)

Stops the provided Toplevel, causing or the top if provided.

public void RequestStop(Toplevel? top)

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 the Running property on the currently running Toplevel to false.