예제 #1
0
        protected override void OpenAssetDetails()
        {
            var dataContext = new SlideDetailsViewModel {
                Asset = SelectedAsset, IsInEditMode = false
            };
            var detailsView = new SlideDetailsView {
                DataContext = dataContext
            };

            detailsView.Show();
        }
예제 #2
0
        protected override void AddAsset()
        {
            var newSlide = new Slide();

            var slideEditDataContext = new SlideDetailsViewModel {
                Asset = newSlide, IsInEditMode = true
            };
            var slideEditWindow = new SlideDetailsView {
                DataContext = slideEditDataContext
            };

            slideEditWindow.Show();
        }