Message content that holds a reference to a view model.
More...
|
| ViewModelBase | ViewModel [get, set] |
| |
|
string | Caption [get, set] |
| |
|
string | Message [get, set] |
| |
|
string | OkButtonText [get, set] |
| |
|
string | CancelButtonText [get, set] |
| |
|
bool | Confirmed [get, set] |
| |
| DelegatingCommand | ConfirmCommand [get] |
| | Sets the Confirmed property to true and triggers a RequestCloseView event. More...
|
| |
|
virtual string | DisplayString [get, set] |
| |
|
bool | IsSelected [get, set] |
| |
|
Dispatcher | ViewDispatcher [get, set] |
| |
|
ICommand | CloseViewCommand [get] |
| |
| Dispatcher | Dispatcher [get] |
| | Captures the dispatcher of the thread that the object was created in. More...
|
| |
|
TaskScheduler | SyncContext [get] |
| |
|
| virtual void | DoConfirm () |
| | Executes the confirmation logic: sets Confirmed to True and calls DoCloseView() to issue a RequestCloseView message. More...
|
| |
| virtual bool | CanConfirm () |
| | Determines whether the ConfirmCommand can be executed. More...
|
| |
| | ViewModelBase () |
| | Does not allow public instantiation of this class. More...
|
| |
|
virtual void | OnPropertyChanged (string propertyName) |
| |
|
virtual bool | CanCloseView () |
| |
|
virtual void | DoCloseView () |
| |
| CancellationToken | Dispatch (Action action) |
| | Dispatches an action in the current synchronization context if one exists, or using the Dispatcher. More...
|
| |
| EventHandler | RequestCloseView |
| | Raised by the CloseView Command, signals that associated views are to be closed. More...
|
| |
|
PropertyChangedEventHandler | PropertyChanged |
| |
Message content that holds a reference to a view model.
Definition at line 29 of file ViewModelMessageContent.cs.
| Bovender.Mvvm.Messaging.ViewModelMessageContent.ViewModelMessageContent |
( |
ViewModelBase |
viewModel | ) |
|
|
inline |
Creates a new instance and set the ViewModel property to the parameter.
- Parameters
-
| viewModel | Instance of a ViewModelBase or descendant (typically the originator of the message). |
Definition at line 53 of file ViewModelMessageContent.cs.
| ViewModelBase Bovender.Mvvm.Messaging.ViewModelMessageContent.ViewModel |
|
getset |
If views and their actions (derived from MessageActionBase) need access to the view model that sent the message, a reference to the view model instance can be transmitted via the ViewModel property.
Definition at line 39 of file ViewModelMessageContent.cs.
The documentation for this class was generated from the following file: