|
| CancellableCommand (IViewModelServiceProvider serviceProvider, IEnumerable< IDirtiableViewModel > dirtiables) |
| Initializes a new instance of the CancellableCommand class. More...
|
|
abstract UndoToken | Redo (object parameter, bool creatingActionItem) |
| Does or redoes the execution of the command. More...
|
|
abstract void | Undo (object parameter, UndoToken token) |
| Undoes the execution of the command. More...
|
|
Protected Member Functions inherited from SiliconStudio.Presentation.Commands.CommandBase |
| CommandBase (IViewModelServiceProvider serviceProvider) |
| Initializes a new instance of the CommandBase class. More...
|
|
| DispatcherViewModel (IViewModelServiceProvider serviceProvider) |
| Initializes a new instance of the DispatcherViewModel class. More...
|
|
override void | OnPropertyChanging (params string[] propertyNames) |
| This method will raise the PropertyChanging for each of the property name passed as argument. - Parameters
-
propertyNames | The names of the properties that is changing. |
More...
|
|
override void | OnPropertyChanged (params string[] propertyNames) |
| This method will raise the PropertyChanged for each of the property name passed as argument. - Parameters
-
propertyNames | The names of the properties that has changed. |
More...
|
|
| ViewModelBase () |
|
| ViewModelBase (IViewModelServiceProvider serviceProvider) |
|
bool | SetValue< T > (ref T field, T value, [CallerMemberName]string propertyName=null) |
| Sets the value of a field to the given value. Both values are compared with the default EqualityComparer{T}, and if they are equals, this method does nothing. If they are different, the PropertyChanging event will be raised first, then the field value will be modified, and finally the PropertyChanged event will be raised. More...
|
|
bool | SetValue< T > (ref T field, T value, params string[] propertyNames) |
| Sets the value of a field to the given value. Both values are compared with the default EqualityComparer{T}, and if they are equals, this method does nothing. If they are different, the PropertyChanging will be raised first, then the field value will be modified, and finally the PropertyChanged event will be raised. More...
|
|
bool | SetValue< T > (ref T field, T value, Action updateAction, [CallerMemberName]string propertyName=null) |
| Sets the value of a field to the given value. Both values are compared with the default EqualityComparer{T}, and if they are equals, this method does nothing. If they are different, the PropertyChanging event will be raised first, then the field value will be modified. The given update action will be executed and finally the PropertyChanged event will be raised. More...
|
|
virtual bool | SetValue< T > (ref T field, T value, Action updateAction, params string[] propertyNames) |
| Sets the value of a field to the given value. Both values are compared with the default EqualityComparer{T}, and if they are equals, this method does nothing. If they are different, the PropertyChanging event will be raised first, then the field value will be modified. The given update action will be executed and finally the PropertyChanged event will be raised. More...
|
|
bool | SetValue (Action updateAction, [CallerMemberName]string propertyName=null) |
| Manages a property modification and its notifications. This method will invoke the provided update action. The PropertyChanging event will be raised prior to the update action, and the PropertyChanged event will be raised after. More...
|
|
bool | SetValue (Action updateAction, params string[] propertyNames) |
| Manages a property modification and its notifications. This method will invoke the provided update action. The PropertyChanging event will be raised prior to the update action, and the PropertyChanged event will be raised after. More...
|
|
bool | SetValue (Func< bool > hasChangedFunction, Action updateAction, [CallerMemberName]string propertyName=null) |
| Manages a property modification and its notifications. A function is provided to check whether the new value is different from the current one. This function will be invoked by this method, and if it returns True , it will invoke the provided update action. The PropertyChanging event will be raised prior to the update action, and the PropertyChanged event will be raised after. More...
|
|
bool | SetValue (bool hasChanged, Action updateAction, [CallerMemberName]string propertyName=null) |
| Manages a property modification and its notifications. The first parameter hasChanged should indicate whether the property should actuallybe updated. If this parameter is True , it will invoke the provided update action. The PropertyChanging event will be raised prior to the update action, and the PropertyChanged event will be raised after. More...
|
|
bool | SetValue (bool hasChanged, Action updateAction, params string[] propertyNames) |
| Manages a property modification and its notifications. The first parameter hasChanged should indicate whether the property should actuallybe updated. If this parameter is True , it will invoke the provided update action. The PropertyChanging event will be raised prior to the update action, and the PropertyChanged event will be raised after. More...
|
|
virtual bool | SetValue (Func< bool > hasChangedFunction, Action updateAction, params string[] propertyNames) |
| Manages a property modification and its notifications. A function is provided to check whether the new value is different from the current one. This function will be invoked by this method, and if it returns True , it will invoke the provided update action. The PropertyChanging event will be raised prior to the update action, and the PropertyChanged event will be raised after. More...
|
|
A command that supports undo/redo
Definition at line 13 of file CancellableCommand.cs.