IDialog.Dismiss Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Dismisses the dialog. Unsubscribes all listeners from the dialog's events, plays the dismiss animation, and then invokes OnDismissed immediately.
public void Dismiss();
abstract member Dismiss : unit -> unit
Public Sub Dismiss ()
Remarks
When creating a IDialog, the implementation should unsubscribe listeners from their custom events, if any. Also, this base implementation should be called after the derived implementation, as the provided base implementation will trigger the dismissal animation and invoke the OnDismissed event for the application.
Any asynchronous methods awaiting on the result of ShowAsync() will be completed at the same time as the OnDismissed delegate is invoked.