Class MessageBoxCommand
- Namespace
- Tudormobile.Wpf.Commands
- Assembly
- Tudormobile.WpfApp.dll
Provides a UI to display a message box to the user.
public class MessageBoxCommand : ProxyCommand, ICommand
- Inheritance
-
MessageBoxCommand
- Implements
- Inherited Members
Constructors
MessageBoxCommand(Action<MessageBoxResult>?, IDialogService?)
Creates and initializes a new instance.
public MessageBoxCommand(Action<MessageBoxResult>? resultAction = null, IDialogService? dialogService = null)
Parameters
resultAction
Action<MessageBoxResult>Action to take after message box is dismissed.
dialogService
IDialogServiceAlternative dialog service to use.
Methods
OnExecute(object?)
Raises the Execute event.
protected override void OnExecute(object? parameter)
Parameters
parameter
object
Remarks
If the parameter is an ICommand instance, the execute action is delegated to that instance. Derived objects may override this method to provide custom behavior.