Skip to content

IContentDialogService.ShowAsync(ContentDialog, CancellationToken) method

Defined in

Type: IContentDialogService Namespace: CrissCross.WPF.UI Assembly: CrissCross.WPF.UI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Task<ContentDialogResult> ShowAsync(ContentDialog dialog, CancellationToken cancellationToken)

Summary: Asynchronously shows the specified dialog.

Parameters

NameTypeDescription
dialog[ContentDialog](#The dialog to be displayed.
cancellationTokenCancellationTokenA cancellation token that can be used to cancel the operation.

Returns: Task -- A task that represents the asynchronous operation. The task result contains the dialog result.