public AnimationPropertyViewModel(ModelDocument document) { if (document == null) { throw new ArgumentNullException(nameof(document)); } _document = document; ToggleIsPlayingCommand = new DelegateCommand(OnToggleIsPlaying); }
/// <summary> /// Initializes a new instance of the <see cref="ModelDocumentViewModel" /> class. /// </summary> /// <param name="document">The document.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="document"/> is <see langword="null"/>. /// </exception> public ModelDocumentViewModel(ModelDocument document) : base(document) { ResetCameraCommand = new DelegateCommand(ResetCameraPose); RecreatedModelAndMaterialDescriptionCommand = new DelegateCommand(Recreate, CanRecreate); }