Class Button | Terminal.Gui v2 (original) (raw)

A button View that can be pressed with the mouse or keyboard.

public class Button : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IDesignable

The Button will raise the Accepting event when the user presses HotKey,Enter, or Space or clicks on the button with the mouse.

Use HotKeySpecifier to change the hot key specifier from the default of ('_').

Button can act as the default Accept handler for all peer-Views. SeeIsDefault.

Set WantContinuousButtonPressed to true to have theAccepting event invoked repeatedly while the button is pressed.