Table of Contents

Property DefaultAcceptView

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

DefaultAcceptView

Gets or sets the default accept view for this View. The default accept view will have Accept invoked on it anytime a peer View raises Accept and the event is not handled, or if Accept is invoked directly on this View.

public View? DefaultAcceptView { get; set; }

Property Value

View

Remarks

This is used to implement the common pattern of having an "OK" button that accepts the dialog when the user presses Enter or clicks the button, without having to set up explicit bindings for each control in the dialog that should trigger the "OK" button's Accept behavior.