Exemple #1
0
        //--------------------------------------------------------------
        public AnimationPropertyViewModel(ModelDocument document)
        {
            if (document == null)
                throw new ArgumentNullException(nameof(document));

            _document = document;
            ToggleIsPlayingCommand = new DelegateCommand(OnToggleIsPlaying);
        }
Exemple #2
0
        //--------------------------------------------------------------
        #region Creation & Cleanup
        //--------------------------------------------------------------

        public AnimationPropertyViewModel(ModelDocument document)
        {
            if (document == null)
            {
                throw new ArgumentNullException(nameof(document));
            }

            _document = document;
            ToggleIsPlayingCommand = new DelegateCommand(OnToggleIsPlaying);
        }
Exemple #3
0
 //--------------------------------------------------------------
 /// <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);
 }
        //--------------------------------------------------------------
        #region Creation & Cleanup
        //--------------------------------------------------------------

        /// <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);
        }