Class ContentDialogServiceExtensions
- Namespace
- Wpf.Ui.Extensions
- Assembly
- Wpf.Ui.dll
public static class ContentDialogServiceExtensions
- Inheritance
-
ContentDialogServiceExtensions
- Inherited Members
Methods
ShowAlertAsync(IContentDialogService, string, string, string, CancellationToken)
Shows the simple alert-like dialog.
public static Task<ContentDialogResult> ShowAlertAsync(this IContentDialogService dialogService, string title, string message, string closeButtonText, CancellationToken cancellationToken = default)
Parameters
dialogService
IContentDialogServicetitle
stringmessage
stringcloseButtonText
stringcancellationToken
CancellationToken
Returns
- Task<ContentDialogResult>
Result of the life cycle of the ContentDialog.
ShowSimpleDialogAsync(IContentDialogService, SimpleContentDialogCreateOptions, CancellationToken)
Shows simple dialog
public static Task<ContentDialogResult> ShowSimpleDialogAsync(this IContentDialogService dialogService, SimpleContentDialogCreateOptions options, CancellationToken cancellationToken = default)
Parameters
dialogService
IContentDialogServiceoptions
SimpleContentDialogCreateOptionsSet of parameters of the basic dialog box.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<ContentDialogResult>
Result of the life cycle of the ContentDialog.