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

Injects a view with a view model that is referenced in a ViewModelMessageContent, and shows the view non-modally. More...

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

Protected Member Functions

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...
 
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 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

Injects a view with a view model that is referenced in a ViewModelMessageContent, and shows the view non-modally.

Member Function Documentation

◆ CreateView() [1/2]

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

Returns a view that can bind to expected message contents.

Returns
Descendant of Window.

Implements Bovender.Mvvm.Actions.MessageActionBase.

Reimplemented in Bovender.Mvvm.Actions.ProcessAction.

◆ CreateView() [2/2]

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

Returns a view that can bind to expected message contents.

Returns
Descendant of Window.

Implements Bovender.Mvvm.Actions.MessageActionBase.

◆ ShowView() [1/2]

override void Bovender.Mvvm.Actions.ShowViewAction.ShowView ( Window  view)
inlineprotectedvirtual

Shows the view as a modal dialog. Override this to do something else with the view.

Parameters
viewWindow object previously created by CreateView.

This method is called internally by the Invoke method.

Reimplemented from Bovender.Mvvm.Actions.MessageActionBase.

Reimplemented in Bovender.Mvvm.Actions.ShowViewDialogAction.

◆ ShowView() [2/2]

override void Bovender.Mvvm.Actions.ShowViewAction.ShowView ( Window  view)
inlineprotectedvirtual

Shows the view as a modal dialog. Override this to do something else with the view.

Parameters
viewWindow object previously created by CreateView.

This method is called internally by the Invoke method.

Reimplemented from Bovender.Mvvm.Actions.MessageActionBase.

Reimplemented in Bovender.Mvvm.Actions.ShowViewDialogAction, and Bovender.Mvvm.Actions.ShowViewDialogAction.

Property Documentation

◆ Assembly

string Bovender.Mvvm.Actions.ShowViewAction.Assembly
getset

◆ View

string Bovender.Mvvm.Actions.ShowViewAction.View
getset

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