Skip to main content

MessageBoxCommand(Object, String, ICommand, Boolean, Boolean) Constructor

Initializes a new instance of the MessageBoxCommand class with specified settings.

Namespace: DevExpress.Mvvm

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

NuGet Package: DevExpress.WinUI

#Declaration

public MessageBoxCommand(
    object id,
    string caption,
    ICommand command = null,
    bool isDefault = false,
    bool isCancel = false
)

#Parameters

Name Type Description
id Object

The button identifier.

caption String

The message box command caption.

#Optional Parameters

Name Type Default Description
command ICommand null

The command that is invoked when a user clicks the button.

isDefault Boolean False

true if the command is invoked when a user presses the Enter or Space key; otherwise, false.

isCancel Boolean False

true if the command is invoked when a user presses the Esc key; otherwise, false.

See Also