Skip to main content

MessageBoxCommand Members

Specifies a model for message box buttons. The MessageBoxService uses this class.

Constructors

Name Description
MessageBoxCommand(Object, String, Action, Boolean, Boolean) Initializes a new instance of the MessageBoxCommand class with specified settings.
MessageBoxCommand(Object, String, ICommand, Boolean, Boolean) Initializes a new instance of the MessageBoxCommand class with specified settings.

Properties

Name Description
Caption Gets the message box command caption.
Command Gets the command that is invoked when a user clicks a message box button that is associated with this MessageBoxCommand instance.
Id Gets an object that identifies a message box command.
IsCancel Gets or sets whether the MessageBoxCommand is the cancel command. The cancel command is executed when you click the Esc key.
IsDefault Gets or sets whether the MessageBoxCommand is the default command. The default command is focused when the message box is displayed. When you click the Enter or Space key, the default command is executed.

Methods

Name Description
Create(MessageButton, IMessageButtonLocalizer, Nullable<MessageResult>, Nullable<MessageResult>) static Creates a list of MessageBoxCommands with specified settings.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also