Occurs when executing the current Dialog Controller's DialogController.AcceptAction.
public event EventHandler<DialogControllerAcceptingEventArgs> Accepting
Public Event Accepting As EventHandler(Of DialogControllerAcceptingEventArgs)
The Accepting event handler receives an argument of the DialogControllerAcceptingEventArgs type.
Executing the Action specified by the Dialog Controller's DialogController.AcceptAction property results in the following, by default:
The current Window contains a Detail View:
The Save Action of the current Window's ModificationsController is executed, and the Window is closed.
The current Window contains a List View:
The current Window is closed.
Handle the Accepting event to perform custom actions before the default actions defined above are executed. To cancel executing the default actions, set the handler's DialogControllerAcceptingEventArgs.Cancel parameter to true (by default, it is set to false).
The Action specified by the DialogController.AcceptAction property is executed both when pressing the pop-up Window's accept button and when double-clicking an object selected in the Window's List View.