bovender framework
C# framework that implements MVVM and more
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:
Bovender.Mvvm.Actions.ShowViewAction Bovender.Mvvm.Actions.NotificationAction Bovender.Mvvm.Actions.MessageActionBase

Protected Member Functions

override System.Windows.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.ShowViewAction
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. 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)
 

Additional Inherited Members

- Public Member Functions inherited from Bovender.Mvvm.Actions.NotificationAction
 NotificationAction (string caption, string message)
 
 NotificationAction (string caption, string message, string okButtonText)
 
 NotificationAction (string caption, string message, string okButtonText, string param)
 
 NotificationAction (string caption, string message, string okButtonText, string param1, string param2)
 
 NotificationAction (string caption, string message, string okButtonText, string param1, string param2, string param3)
 
- Static Public Attributes inherited from Bovender.Mvvm.Actions.NotificationAction
static readonly DependencyProperty CaptionProperty
 
static readonly DependencyProperty MessageProperty
 
static readonly DependencyProperty Param1Property
 
static readonly DependencyProperty Param2Property
 
static readonly DependencyProperty Param3Property
 
static readonly DependencyProperty OkButtonTextProperty
 
static readonly DependencyProperty CancelButtonTextProperty
 
- Properties inherited from Bovender.Mvvm.Actions.ShowViewAction
string Assembly [get, set]
 
string View [get, set]
 
- Properties inherited from Bovender.Mvvm.Actions.NotificationAction
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]
 

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.

Definition at line 42 of file ProcessAction.cs.

Member Function Documentation

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

Returns a view that can bind to expected message contents.

Returns
Descendant of Window.

Reimplemented from Bovender.Mvvm.Actions.NotificationAction.

Definition at line 46 of file ProcessAction.cs.

override ViewModels.ViewModelBase Bovender.Mvvm.Actions.ProcessAction.GetDataContext ( MessageContent  messageContent)
inlineprotectedvirtual

Gets a ViewModelBase object that will be injected into the view In the abstract base class, this returns the messageContent parameter as-is.

Parameters
messageContentMessage content that will be data-bound to the view.
Returns
ViewModelBase object

Reimplemented from Bovender.Mvvm.Actions.NotificationAction.

Definition at line 65 of file ProcessAction.cs.


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