Table of Contents

Property Modal

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Modal

Determines whether the Wizard is displayed as modal pop-up or not.

The default is true. The Wizard will be shown with a frame with Title and will behave like any Toplevel window.

If set to false the Wizard will have no frame and will behave like any embedded View.

To use Wizard as an embedded View

  1. Set Modal to false.
  2. Add the Wizard to a containing view with Add(View).

If a non-Modal Wizard is added to the application after Run(Func<Exception, bool>) has been called the first step must be explicitly set by setting CurrentStep to GetNextStep():

wizard.CurrentStep = wizard.GetNextStep();
public bool Modal { get; set; }

Property Value

bool