Table of Contents

Property IsDefault

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

IsDefault

Gets or sets whether the Button will act as the default handler for Accept commands on the SuperView.

public bool IsDefault { get; set; }

Property Value

bool

Remarks

If true:

- the Button will display an indicator that it is the default Button.

- when clicked, if the Accepting event is not handled, Accept will be invoked on the SuperView.

- If a peer-View receives Accept and does not handle it, the command will be passed to the first Button in the SuperView that has IsDefault set to true. See RaiseAccepting(ICommandContext?) for more information.