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

Provides an action to confirm or cancel a message. Adds a CancelButtonLabel to the NotificationAction base class and creates a ConfirmationView rather than a NotificationView. More...

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

Public Member Functions

 ConfirmationAction ()
 
 ConfirmationAction ()
 
- Public Member Functions inherited from Bovender.Mvvm.Actions.NotificationAction
 NotificationAction ()
 
 NotificationAction (string caption, string message)
 
 NotificationAction (string caption, string message, string okButtonLabel)
 
 NotificationAction (string caption, string message, string okButtonLabel, string param)
 
 NotificationAction (string caption, string message, string okButtonLabel, string param1, string param2)
 
 NotificationAction (string caption, string message, string okButtonLabel, string param1, string param2, string param3)
 
 NotificationAction ()
 
 NotificationAction (string caption, string message)
 
 NotificationAction (string caption, string message, string okButtonLabel)
 
 NotificationAction (string caption, string message, string okButtonLabel, string param)
 
 NotificationAction (string caption, string message, string okButtonLabel, string param1, string param2)
 
 NotificationAction (string caption, string message, string okButtonLabel, string param1, string param2, string param3)
 

Static Public Attributes

static readonly DependencyProperty CancelButtonLabelProperty
 
- Static Public Attributes inherited from Bovender.Mvvm.Actions.NotificationAction
static readonly DependencyProperty Param1Property
 
static readonly DependencyProperty Param2Property
 
static readonly DependencyProperty Param3Property
 
static readonly DependencyProperty OkButtonLabelProperty
 

Protected Member Functions

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

Properties

string CancelButtonLabel [get, set]
 
- Properties inherited from Bovender.Mvvm.Actions.NotificationAction
string Param1 [get, set]
 
string Param2 [get, set]
 
string Param3 [get, set]
 
string OkButtonLabel [get, set]
 
string FormattedText [get]
 Returns the Message string formatted with the three params. More...
 
- Properties inherited from Bovender.Mvvm.Actions.MessageActionBase
string Caption [get, set]
 
string Message [get, set]
 
MessageContent Content [get, protected set]
 

Detailed Description

Provides an action to confirm or cancel a message. Adds a CancelButtonLabel to the NotificationAction base class and creates a ConfirmationView rather than a NotificationView.

Constructor & Destructor Documentation

◆ ConfirmationAction() [1/2]

Bovender.Mvvm.Actions.ConfirmationAction.ConfirmationAction ( )
inline

◆ ConfirmationAction() [2/2]

Bovender.Mvvm.Actions.ConfirmationAction.ConfirmationAction ( )
inline

Member Function Documentation

◆ CreateView() [1/2]

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

Returns a view that can bind to expected message contents.

Returns
Descendant of Window.

Implements Bovender.Mvvm.Actions.MessageActionBase.

◆ CreateView() [2/2]

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

Returns a view that can bind to expected message contents.

Returns
Descendant of Window.

Reimplemented from Bovender.Mvvm.Actions.NotificationAction.

Member Data Documentation

◆ CancelButtonLabelProperty

static readonly DependencyProperty Bovender.Mvvm.Actions.ConfirmationAction.CancelButtonLabelProperty
static
Initial value:
= DependencyProperty.Register(
"CancelButtonLabel", typeof(string), typeof(ConfirmationAction))

Property Documentation

◆ CancelButtonLabel

string Bovender.Mvvm.Actions.ConfirmationAction.CancelButtonLabel
getset

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