Table of Contents

Method AddButton

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

AddButton(Button)

Adds a Button to the bottom of the dialog and to the Buttons collection.

public void AddButton(Button dialogButton)

Parameters

dialogButton Button

The Dialog button to add. Its lifetime and layout will be managed by the Dialog.

Remarks

Buttons are positioned according to ButtonAlignment and ButtonAlignmentModes. The last button added becomes the default (IsDefault = true).

When a button is pressed, the dialog's Accepting event is raised.