Daniel's XL Toolbox NG
|
Abstract base class for MVVM messaging actions. Derived classes must implement a CreateView method that returns a view for the view model that is expected to be received as a message content. More...
Protected Member Functions | |
override void | Invoke (object parameter) |
Creates a view that has its dependent view model injected into it. More... | |
void | Invoke< T > (T messageContent, Action respond) |
virtual void | ShowView (Window view) |
Shows the view as a modal dialog. Override this to do something else with the view. More... | |
abstract Window | CreateView () |
Returns a view that can bind to expected message contents. More... | |
override void | Invoke (object parameter) |
Creates a view that has its dependent view model injected into it. More... | |
void | Invoke< T > (T messageContent, Action respond) |
virtual void | ShowView (Window view) |
Shows the view as a modal dialog. Override this to do something else with the view. More... | |
abstract Window | CreateView () |
Returns a view that can bind to expected message contents. More... | |
Properties | |
string | Caption [get, set] |
string | Message [get, set] |
MessageContent | Content [get, protected set] |
Abstract base class for MVVM messaging actions. Derived classes must implement a CreateView method that returns a view for the view model that is expected to be received as a message content.
|
protectedpure virtual |
Returns a view that can bind to expected message contents.
Implemented in Bovender.Mvvm.Actions.NotificationAction, Bovender.Mvvm.Actions.NotificationAction, Bovender.Mvvm.Actions.FileFolderActionBase, Bovender.Mvvm.Actions.FileFolderActionBase, Bovender.Mvvm.Actions.ConfirmationAction, Bovender.Mvvm.Actions.ConfirmationAction, XLToolbox.Mvvm.Actions.ChooseFolderAction, Bovender.Mvvm.Actions.ProcessAction, Bovender.Mvvm.Actions.ProcessAction, Bovender.Mvvm.Actions.ProcessCompletedAction, Bovender.Mvvm.Actions.ProcessCompletedAction, Bovender.Mvvm.Actions.ShowViewAction, Bovender.Mvvm.Actions.ShowViewAction, XLToolbox.Mvvm.Actions.ShowHtmlAction, XLToolbox.Mvvm.Actions.StringMessageAction, and XLToolbox.ExceptionHandler.SubmissionProcessAction.
|
protectedpure virtual |
Returns a view that can bind to expected message contents.
Implemented in Bovender.Mvvm.Actions.NotificationAction, Bovender.Mvvm.Actions.NotificationAction, Bovender.Mvvm.Actions.FileFolderActionBase, Bovender.Mvvm.Actions.FileFolderActionBase, Bovender.Mvvm.Actions.ConfirmationAction, Bovender.Mvvm.Actions.ConfirmationAction, XLToolbox.Mvvm.Actions.ChooseFolderAction, Bovender.Mvvm.Actions.ProcessAction, Bovender.Mvvm.Actions.ProcessAction, Bovender.Mvvm.Actions.ProcessCompletedAction, Bovender.Mvvm.Actions.ProcessCompletedAction, Bovender.Mvvm.Actions.ShowViewAction, Bovender.Mvvm.Actions.ShowViewAction, XLToolbox.Mvvm.Actions.ShowHtmlAction, XLToolbox.Mvvm.Actions.StringMessageAction, and XLToolbox.ExceptionHandler.SubmissionProcessAction.
|
inlineprotected |
Creates a view that has its dependent view model injected into it.
This methods delegates the creation of the view instance to the virtual CreateView method. If this method injects a view model into the view's DataContext, the view will simply be shown (as a dialog). If the CreateView method does not inject the dependeny, the Invoke method will inject 'this' (i.e., the MessageActionBase object or a descendant) into the view and sets the RequestClose event handler.
parameter | MessageArgs argument for the Message.Sent event. |
|
inlineprotected |
Creates a view that has its dependent view model injected into it.
This methods delegates the creation of the view instance to the virtual CreateView method. If this method injects a view model into the view's DataContext, the view will simply be shown (as a dialog). If the CreateView method does not inject the dependeny, the Invoke method will inject 'this' (i.e., the MessageActionBase object or a descendant) into the view and sets the RequestClose event handler.
parameter | MessageArgs argument for the Message.Sent event. |
|
inlineprotected |
T | : | MessageContent |
|
inlineprotected |
T | : | MessageContent |
|
inlineprotectedvirtual |
Shows the view as a modal dialog. Override this to do something else with the view.
view | Window object previously created by CreateView. |
This method is called internally by the Invoke method.
Reimplemented in Bovender.Mvvm.Actions.ShowViewAction, Bovender.Mvvm.Actions.ShowViewAction, Bovender.Mvvm.Actions.ShowViewDialogAction, and Bovender.Mvvm.Actions.ShowViewDialogAction.
|
inlineprotectedvirtual |
Shows the view as a modal dialog. Override this to do something else with the view.
view | Window object previously created by CreateView. |
This method is called internally by the Invoke method.
Reimplemented in Bovender.Mvvm.Actions.ShowViewAction, Bovender.Mvvm.Actions.ShowViewAction, Bovender.Mvvm.Actions.ShowViewDialogAction, and Bovender.Mvvm.Actions.ShowViewDialogAction.
|
getset |
|
getprotected set |
|
getset |