5 using SiliconStudio.ActionStack;
6 using SiliconStudio.Presentation.Services;
8 namespace SiliconStudio.Presentation.ViewModel.
ActionStack
16 private bool isSavePoint;
17 private bool isDone =
true;
18 private bool isFrozen;
26 : base(serviceProvider)
28 if (actionItem == null)
29 throw new ArgumentNullException(
"actionItem");
31 this.actionItem = actionItem;
32 DisplayName = actionItem.Name;
39 public string DisplayName {
get;
private set; }
44 public bool IsDone {
get {
return isDone; }
private set { SetValue(ref isDone, value); } }
49 public bool IsSavePoint {
get {
return isSavePoint; }
internal set { SetValue(ref isSavePoint, value); } }
54 public bool IsFrozen {
get {
return isFrozen; }
private set { SetValue(ref isFrozen, value); } }
64 internal void Refresh()
66 IsDone = actionItem.IsDone;
67 IsFrozen = actionItem.IsFrozen;
ActionItemViewModel(IViewModelServiceProvider serviceProvider, IActionItem actionItem)
Initializes a new instance of the ActionItemViewModel class.
A service provider class for view model objects.
Base class for action items.
This abstract class is an implementation of ViewModelBase that uses a dispatcher to invoke OnProperty...
Base interface for action items.
This class is a view model for object that implements the IActionItem interface. It inherits from the...
This class represents a thread-safe stack of action items that can be undone/redone.