Property IsDefault | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

IsDefault

Gets or sets whether the Button will act as the default handler for Acceptcommands 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. SeeRaiseAccepting(ICommandContext?) for more information.