bovender framework
C# framework that implements MVVM and more
Bovender.Mvvm.Actions.ProcessCompletedAction Class Reference

WPF action that invokes different views depending on the status of a completed process. More...

Inheritance diagram for Bovender.Mvvm.Actions.ProcessCompletedAction:
Bovender.Mvvm.Actions.NotificationAction Bovender.Mvvm.Actions.MessageActionBase

Public Member Functions

 ProcessCompletedAction (ProcessMessageContent processMessageContent)
 
 ProcessCompletedAction (ProcessMessageContent processMessageContent, string caption)
 
 ProcessCompletedAction (ProcessMessageContent processMessageContent, string caption, string message)
 
 ProcessCompletedAction (ProcessMessageContent processMessageContent, string caption, string message, string okButtonText)
 
 ProcessCompletedAction (ProcessMessageContent processMessageContent, string caption, string message, string okButtonText, string param)
 
 ProcessCompletedAction (ProcessMessageContent processMessageContent, string caption, string message, string okButtonText, string param1, string param2)
 
 ProcessCompletedAction (ProcessMessageContent processMessageContent, string caption, string message, string okButtonText, string param1, string param2, string param3)
 
- 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)
 

Protected Member Functions

virtual Window CreateSuccessWindow ()
 
virtual Window CreateFailureWindow ()
 
virtual Window CreateCancelledWindow ()
 
override Window CreateView ()
 Returns a view that can bind to expected message contents. More...
 
- Protected Member Functions inherited from Bovender.Mvvm.Actions.NotificationAction
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

bool HasException [get]
 Is true if the Content is a ProcessMessageContent and has an Exception object. More...
 
- 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]
 

Additional Inherited Members

- 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
 

Detailed Description

WPF action that invokes different views depending on the status of a completed process.

Definition at line 31 of file ProcessCompletedAction.cs.

Member Function Documentation

override Window Bovender.Mvvm.Actions.ProcessCompletedAction.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 143 of file ProcessCompletedAction.cs.

Property Documentation

bool Bovender.Mvvm.Actions.ProcessCompletedAction.HasException
get

Is true if the Content is a ProcessMessageContent and has an Exception object.

Definition at line 40 of file ProcessCompletedAction.cs.


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