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

Opens a generic WPF dialog window that displays a message and has a single OK button. The message string can include parameters. More...

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

Public Member Functions

 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 Param1Property
 
static readonly DependencyProperty Param2Property
 
static readonly DependencyProperty Param3Property
 
static readonly DependencyProperty OkButtonLabelProperty
 

Protected Member Functions

override Window CreateView ()
 Returns a view that can bind to expected message contents. More...
 
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 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

Opens a generic WPF dialog window that displays a message and has a single OK button. The message string can include parameters.

Constructor & Destructor Documentation

◆ NotificationAction() [1/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( )
inline

◆ NotificationAction() [2/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( string  caption,
string  message 
)
inline

◆ NotificationAction() [3/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( string  caption,
string  message,
string  okButtonLabel 
)
inline

◆ NotificationAction() [4/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( string  caption,
string  message,
string  okButtonLabel,
string  param 
)
inline

◆ NotificationAction() [5/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( string  caption,
string  message,
string  okButtonLabel,
string  param1,
string  param2 
)
inline

◆ NotificationAction() [6/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( string  caption,
string  message,
string  okButtonLabel,
string  param1,
string  param2,
string  param3 
)
inline

◆ NotificationAction() [7/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( )
inline

◆ NotificationAction() [8/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( string  caption,
string  message 
)
inline

◆ NotificationAction() [9/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( string  caption,
string  message,
string  okButtonLabel 
)
inline

◆ NotificationAction() [10/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( string  caption,
string  message,
string  okButtonLabel,
string  param 
)
inline

◆ NotificationAction() [11/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( string  caption,
string  message,
string  okButtonLabel,
string  param1,
string  param2 
)
inline

◆ NotificationAction() [12/12]

Bovender.Mvvm.Actions.NotificationAction.NotificationAction ( string  caption,
string  message,
string  okButtonLabel,
string  param1,
string  param2,
string  param3 
)
inline

Member Function Documentation

◆ CreateView() [1/2]

override Window Bovender.Mvvm.Actions.NotificationAction.CreateView ( )
inlineprotectedvirtual

◆ CreateView() [2/2]

override Window Bovender.Mvvm.Actions.NotificationAction.CreateView ( )
inlineprotectedvirtual

Returns a view that can bind to expected message contents.

Returns
Descendant of Window.

Implements Bovender.Mvvm.Actions.MessageActionBase.

Reimplemented in XLToolbox.Mvvm.Actions.ShowHtmlAction, XLToolbox.Mvvm.Actions.StringMessageAction, and XLToolbox.ExceptionHandler.SubmissionProcessAction.

Member Data Documentation

◆ OkButtonLabelProperty

static readonly DependencyProperty Bovender.Mvvm.Actions.NotificationAction.OkButtonLabelProperty
static
Initial value:
= DependencyProperty.Register(
"OkButtonLabel", typeof(string), typeof(NotificationAction))

◆ Param1Property

static readonly DependencyProperty Bovender.Mvvm.Actions.NotificationAction.Param1Property
static
Initial value:
= DependencyProperty.Register(
"Param1", typeof(string), typeof(NotificationAction))

◆ Param2Property

static readonly DependencyProperty Bovender.Mvvm.Actions.NotificationAction.Param2Property
static
Initial value:
= DependencyProperty.Register(
"Param2", typeof(string), typeof(NotificationAction))

◆ Param3Property

static readonly DependencyProperty Bovender.Mvvm.Actions.NotificationAction.Param3Property
static
Initial value:
= DependencyProperty.Register(
"Param3", typeof(string), typeof(NotificationAction))

Property Documentation

◆ FormattedText

string Bovender.Mvvm.Actions.NotificationAction.FormattedText
get

Returns the Message string formatted with the three params.

◆ OkButtonLabel

string Bovender.Mvvm.Actions.NotificationAction.OkButtonLabel
getset

◆ Param1

string Bovender.Mvvm.Actions.NotificationAction.Param1
getset

◆ Param2

string Bovender.Mvvm.Actions.NotificationAction.Param2
getset

◆ Param3

string Bovender.Mvvm.Actions.NotificationAction.Param3
getset

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