Daniel's XL Toolbox NG
Bovender.Mvvm.Actions.ProcessAction Class Reference

Invokes a process view and injects the ProcessMessageContent as a view model into it. More...

Inheritance diagram for Bovender.Mvvm.Actions.ProcessAction:
Collaboration diagram for Bovender.Mvvm.Actions.ProcessAction:

Protected Member Functions

override System.Windows.Window CreateView ()
 Injects the message Content into a newly created ProcessView and returns the view. More...
 
override System.Windows.Window CreateView ()
 Injects the message Content into a newly created ProcessView and returns the view. More...
 
- Protected Member Functions inherited from Bovender.Mvvm.Actions.ShowViewAction
override void ShowView (Window view)
 Shows the view as a modal dialog. Override this to do something else with the view. More...
 
override Window CreateView ()
 Returns a view that can bind to expected message contents. More...
 
override void ShowView (Window view)
 Shows the view as a modal dialog. Override this to do something else with the view. More...
 
- Protected Member Functions inherited from Bovender.Mvvm.Actions.MessageActionBase
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)
 
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)
 

Properties

string CancelButtonText [get, set]
 
- Properties inherited from Bovender.Mvvm.Actions.ShowViewAction
string Assembly [get, set]
 
string View [get, set]
 
- Properties inherited from Bovender.Mvvm.Actions.MessageActionBase
string Caption [get, set]
 
string Message [get, set]
 
MessageContent Content [get, protected set]
 

Detailed Description

Invokes a process view and injects the ProcessMessageContent as a view model into it.

This action cannot inject itself into the view because actions are not view models by Bovender's definition. To enable a view that invoke this action to set the strings itself, the Caption and Message properties of the MessageActionBase parent class and a CancelButtonText are written to the message content object (if they are not null or empty strings) so that they are available in the newly created view that binds the message content as its view model.

Member Function Documentation

◆ CreateView() [1/2]

override System.Windows.Window Bovender.Mvvm.Actions.ProcessAction.CreateView ( )
inlineprotectedvirtual

Injects the message Content into a newly created ProcessView and returns the view.

Returns
Instance of ProcessView that is data bound to the current message Content.

Implements Bovender.Mvvm.Actions.MessageActionBase.

◆ CreateView() [2/2]

override System.Windows.Window Bovender.Mvvm.Actions.ProcessAction.CreateView ( )
inlineprotectedvirtual

Injects the message Content into a newly created ProcessView and returns the view.

Returns
Instance of ProcessView that is data bound to the current message Content.

Reimplemented from Bovender.Mvvm.Actions.ShowViewAction.

Property Documentation

◆ CancelButtonText

string Bovender.Mvvm.Actions.ProcessAction.CancelButtonText
getset

The documentation for this class was generated from the following file: