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
| Name | Type | Description |
|---|---|---|
dialogService | [IContentDialogService](# | The dialog service. |
title | string | The title. |
message | string | The message. |
closeButtonText | string | The close button text. |
cancellationToken = null | CancellationToken | The cancellation token. |
Returns: Task