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 RunState Begin(Toplevel toplevel)

Parameters

toplevel Toplevel

The Toplevel to prepare execution for.

Returns

RunState

The 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, lays out the Subviews, focuses the first element, and draws the Toplevel in the screen. This is usually followed by executing the RunLoop(RunState) method, and then the End(RunState) method upon termination which will undo these changes.