Skip to main content

IMessageBoxService.ShowAsync(String, String, IEnumerable<MessageBoxCommand>) Method

Displays a message box with specified parameters asynchronously.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.WinUI.Mvvm.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

Task<MessageBoxCommand> ShowAsync(
    string content,
    string title,
    IEnumerable<MessageBoxCommand> commands
)

Parameters

Name Type Description
content String

A text that is displayed in the message box.

title String

A message box’s title.

commands IEnumerable<MessageBoxCommand>

The collection of message box commands that are displayed in the message box.

Returns

Type Description
Task<MessageBoxCommand>

The Task that returns the command of the clicked message box button.

See Also