当前位置: 首页>>代码示例>>C#>>正文


C# IWindow.Show方法代码示例

本文整理汇总了C#中IWindow.Show方法的典型用法代码示例。如果您正苦于以下问题:C# IWindow.Show方法的具体用法?C# IWindow.Show怎么用?C# IWindow.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IWindow的用法示例。


在下文中一共展示了IWindow.Show方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: New

        public void New()
        {
            newProjectWindow = newProjectWindowFactory.Create();
            INewProjectSuiteViewModel newProjectSuiteViewModel = newProjectSuiteViewModelFactory.Create();

            newProjectWindow.DataContext = newProjectSuiteViewModel;

            newProjectWindow.Show();
        }
开发者ID:philt5252,项目名称:GoldenHorse,代码行数:9,代码来源:ProjectController.cs

示例2: Start

        public void Start(Test test)
        {
            trainingMainWindow = trainingMainWindowFactory.Create();
            ITrainingMainViewModel trainingMainViewModel = trainingMainViewModelFactory.Create(test);

            trainingMainWindow.DataContext = trainingMainViewModel;

            trainingMainWindow.Show();

            appController.MainWindow.Minimize();
        }
开发者ID:philt5252,项目名称:GoldenHorse,代码行数:11,代码来源:TrainingController.cs

示例3: ShowRecordingWindow

        private void ShowRecordingWindow(Test test)
        {
            recordingWindow = recordWindowFactory.Create();

            recorder = recorderFactory.Create(test);
            IRecorderViewModel recorderViewModel = recorderViewModelFactory.Create(recorder);

            recordingWindow.DataContext = recorderViewModel;

            //appController.MainWindow.Minimize();

            recordingWindow.Show();
            appController.MainWindow.Minimize();
        }
开发者ID:philt5252,项目名称:GoldenHorse,代码行数:14,代码来源:RecordingController.cs

示例4: doBackgroundGuiThreadWork

        protected virtual void doBackgroundGuiThreadWork()
        {
            m_WaitWindow = createWindow();
            m_WaitWindow.Show(m_WaitIndicatorAppearance, m_Left, m_Top, m_Width, m_Height);
            m_WaitWindowShownEvent.Set();

            Dispatcher dispatcher = m_WaitWindow.DispatcherInstance;
            m_ModalDispatcherFrame = new DispatcherFrame();
            Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(exitFrame), m_ModalDispatcherFrame);
            Dispatcher.PushFrame(m_ModalDispatcherFrame);
        }
开发者ID:kurattila,项目名称:Cider-x64,代码行数:11,代码来源:WaitIndicator.cs

示例5: PrepareContentDialog

 private void PrepareContentDialog(object view)
 {
     contentDialog = CreateWindow();
     contentDialog.Content = view;
     contentDialog.Owner = HostControl;
     contentDialog.Closed += ContentDialogClosed;
     contentDialog.Style = GetStyleForView();
     contentDialog.Show();
 }
开发者ID:trasa,项目名称:cabal,代码行数:9,代码来源:DialogActivationBehavior.cs

示例6: Home

        public void Home()
        {
            MainWindow = mainWindowFactory.Create();

            IViewWithDataContext mainShellView = mainShellViewFactory.Create();
            IMainShellViewModel mainShellViewModel = mainShellViewModelFactory.Create();

            mainShellView.DataContext = mainShellViewModel;

            IViewWithDataContext projectWorkspaceView = projectWorkspaceViewFactory.Create();
            IViewWithDataContext projectExplorerView = projectExplorerViewFactory.Create();
            IStartPageViewModel startPageViewModel = startPageViewModelFactory.Create();
            IViewWithDataContext startView = startViewFactory.Create();
            startView.DataContext = startPageViewModel;
            //IViewWithDataContext workspaceView = testWorkspaceViewFactory.Create();

            regionManager.Regions[Regions.MainShellViewRegion].AddAndActivate(mainShellView);
            regionManager.Regions[Regions.MainWorkspaceViewRegion].AddAndActivate(projectWorkspaceView);
            regionManager.Regions[Regions.ExplorerViewRegion].AddAndActivate(projectExplorerView, ViewNames.ProjectExplorerView);
            regionManager.Regions[Regions.WorkspaceViewRegion].AddAndActivate(startView);

            MainWindow.Show();
        }
开发者ID:philt5252,项目名称:GoldenHorse,代码行数:23,代码来源:AppController.cs


注:本文中的IWindow.Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。