Table of Contents

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 IContentDialogService
title string
message string
closeButtonText string
cancellationToken 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 IContentDialogService

The IContentDialogService.

options SimpleContentDialogCreateOptions

Set of parameters of the basic dialog box.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<ContentDialogResult>

Result of the life cycle of the ContentDialog.