コード例 #1
0
 public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
 {
     var view = new MainWindow();
     var model = new MainWindowViewModel();
     view.DataContext = model;
     return new NewTabHost<Window>(view, view.InitialTabablzControl);
 }
コード例 #2
0
        public static MainWindowViewModel CreateWithSamples()
        {
            var result = new MainWindowViewModel();

            result.TabContents.Add(new TabContent("Introduction", new IntroductionPage()));
            result.TabContents.Add(new TabContent("Introduction", new IntroductionPage()));

            return result;
        }