Skip to main content

MessageBoxCommand(Object, String, Action, 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,
    Action action,
    bool isDefault = false,
    bool isCancel = false
)

#Parameters

Name Type Description
id Object

A button identifier.

caption String

The message box command caption.

action Action

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

#Optional Parameters

Name Type Default Description
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