Language
Edit

IDialog.Dismiss Method

Definition

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.

Applies to