Skip to content

ContentDialogService.ShowAsync(ContentDialog, CancellationToken) method

Defined in

Type: ContentDialogService 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

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

Inherited documentation

These docs were inherited from IContentDialogService. The member doesn't override them on this type.

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.