Table of Contents

Method Begin

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Begin(Toplevel)

Building block API: Prepares the provided Toplevel for execution.

public static Application.RunState Begin(Toplevel toplevel)

Parameters

toplevel Toplevel

The Toplevel to prepare execution for.

Returns

Application.RunState

The Application.RunState handle that needs to be passed to the End(RunState) method upon completion.

Remarks

This method prepares the provided toplevel for running with the focus, it adds this to the list of toplevels, sets up the mainloop to process the event, lays out the subviews, focuses the first element, and draws the toplevel in the screen. This is usually followed by executing the RunLoop(RunState, bool) method, and then the End(RunState) method upon termination which will undo these changes.