IDialog.ShowAsync 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.
An asynchronous operation that returns a DialogDismissedEventArgs that represents the result of the user's choice. The task will complete once the dialog dismissed, either by user action or by some other foreground action. If the user does not select an option, the Choice property will be null.
public System.Threading.Tasks.Task<MixedReality.Toolkit.UX.DialogDismissedEventArgs> ShowAsync();
abstract member ShowAsync : unit -> System.Threading.Tasks.Task<MixedReality.Toolkit.UX.DialogDismissedEventArgs>
Public Function ShowAsync () As Task(Of DialogDismissedEventArgs)
Returns
Remarks
This is usually implemented by a TaskCompletionSource listening on the the OnDismissed delegate. This allows for either synchronous or asynchronous usage of the IDialog.