Method RaiseAccepting
RaiseAccepting(ICommandContext?)
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(ICommandContext? ctx)
Parameters
ctx
ICommandContext
Returns
- bool?
null if no event was raised; input processing should continue. false if the event was raised and was not handled (or cancelled); input processing should continue. true if the event was raised and handled (or cancelled); input processing should stop.
Remarks
The Accepting event should be 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.