Table of Contents

Method RaiseAccepting

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

RaiseAccepting(CommandContext)

Called when the user is accepting the state of the View and the Accept has been invoked. Calls OnAccepting(CommandEventArgs) which can be cancelled; if not cancelled raises Accepting. event. The default Accept handler calls this method.

protected bool? RaiseAccepting(CommandContext ctx)

Parameters

ctx CommandContext

Returns

bool?

null if no event was raised; input proessing should continue. false if the event was raised and was not handled (or cancelled); input proessing should continue. true if the event was raised and handled (or cancelled); input proessing should stop.

Remarks

The Accepting event should raised after the state of the View has changed (after Selecting is raised).

If the Accepting event is not handled, Accept will be invoked on the SuperView, enabling default Accept behavior.

If a peer-View raises the Accepting event and the event is not cancelled, the Accept will be invoked on the first Button in the SuperView that has IsDefault set to true.