Opens a generic WPF dialog window that displays a message and has a single OK button. More...
Protected Member Functions | |
| override Window | CreateView () |
| Returns a view that can bind to expected message contents. More... | |
| override ViewModels.ViewModelBase | GetDataContext (MessageContent messageContent) |
| Gets a ViewModelBase object that will be injected into the view In the abstract base class, this returns the messageContent parameter as-is. More... | |
Protected Member Functions inherited from Bovender.Mvvm.Actions.MessageActionBase | |
| override void | Invoke (object parameter) |
| Invokes the action by creating a view and a corresponding view model. More... | |
| void | Invoke< T > (T messageContent, Action response) |
| virtual void | ShowView (Window view) |
| Shows the view as a modal dialog. More... | |
Properties | |
| string | Caption [get, set] |
| string | Message [get, set] |
| string | Param1 [get, set] |
| string | Param2 [get, set] |
| string | Param3 [get, set] |
| string | OkButtonText [get, set] |
| string | CancelButtonText [get, set] |
| string | FormattedText [get] |
| Returns the Message string formatted with the three params. More... | |
Properties inherited from Bovender.Mvvm.Actions.MessageActionBase | |
| MessageContent | Content [get, set] |
Opens a generic WPF dialog window that displays a message and has a single OK button.
The message string can include parameters.
The string properties must be declared as dependency properties so that they can be data-bound in XAML.
Definition at line 33 of file NotificationAction.cs.
|
inlineprotectedvirtual |
Returns a view that can bind to expected message contents.
Implements Bovender.Mvvm.Actions.MessageActionBase.
Reimplemented in Bovender.Mvvm.Actions.ProcessCompletedAction, Bovender.Mvvm.Actions.SuppressibleNotificationAction, Bovender.Mvvm.Actions.ProcessAction, and Bovender.Mvvm.Actions.ShowViewAction.
Definition at line 195 of file NotificationAction.cs.
|
inlineprotectedvirtual |
Gets a ViewModelBase object that will be injected into the view In the abstract base class, this returns the messageContent parameter as-is.
| messageContent | Message content that will be data-bound to the view. |
Reimplemented from Bovender.Mvvm.Actions.MessageActionBase.
Reimplemented in Bovender.Mvvm.Actions.ShowViewAction, and Bovender.Mvvm.Actions.ProcessAction.
Definition at line 204 of file NotificationAction.cs.
|
static |
Definition at line 147 of file NotificationAction.cs.
|
static |
Definition at line 129 of file NotificationAction.cs.
|
static |
Definition at line 132 of file NotificationAction.cs.
|
static |
Definition at line 144 of file NotificationAction.cs.
|
static |
Definition at line 135 of file NotificationAction.cs.
|
static |
Definition at line 138 of file NotificationAction.cs.
|
static |
Definition at line 141 of file NotificationAction.cs.
|
get |
Returns the Message string formatted with the three params.
Definition at line 105 of file NotificationAction.cs.