Пример #1
0
        public void OpenStoryboardPage(DXProject project)
        {
            // DeXign Project
            var page    = new StoryboardPage();
            var tabItem = new ClosableTabItem()
            {
                Header     = project.Manifest.ProjectName,
                IsSelected = true,
                Content    = new Frame()
                {
                    Content = page
                },
                Tag = page.Model
            };

            tabItem.Closed += TabItem_Closed;

            // Add project on managed collection
            Model.Projects.SafeAdd(project);

            // Set Storyboard Project
            page.Model.Project = project;

            // Add TabPage
            tabControl.Items.Add(tabItem);

            // Update Recent
            UpdateRecentMenu();
        }
Пример #2
0
 public StoryboardModel(StoryboardPage viewModel) : this()
 {
     this.ViewModel = viewModel;
 }