Skip to content

ContentDialogServiceExtensions.ShowAlertAsync(IContentDialogService, string, string, string, CancellationToken) method

Defined in

Type: ContentDialogServiceExtensions Namespace: CrissCross.WPF.UI.Extensions Assembly: CrissCross.WPF.UI.dll

Applies to

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

public static Task<ContentDialogResult> ShowAlertAsync(this IContentDialogService dialogService, string title, string message, string closeButtonText, CancellationToken cancellationToken = default(CancellationToken))

Summary: Shows the simple alert-like dialog.

Parameters

NameTypeDescription
dialogService[IContentDialogService](#The dialog service.
titlestringThe title.
messagestringThe message.
closeButtonTextstringThe close button text.
cancellationToken = nullCancellationTokenThe cancellation token.

Returns: Task -- Result of the life cycle of the ContentDialog.