本文整理汇总了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();
}
示例2: Start
public void Start(Test test)
{
trainingMainWindow = trainingMainWindowFactory.Create();
ITrainingMainViewModel trainingMainViewModel = trainingMainViewModelFactory.Create(test);
trainingMainWindow.DataContext = trainingMainViewModel;
trainingMainWindow.Show();
appController.MainWindow.Minimize();
}
示例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();
}
示例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);
}
示例5: PrepareContentDialog
private void PrepareContentDialog(object view)
{
contentDialog = CreateWindow();
contentDialog.Content = view;
contentDialog.Owner = HostControl;
contentDialog.Closed += ContentDialogClosed;
contentDialog.Style = GetStyleForView();
contentDialog.Show();
}
示例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();
}