예제 #1
0
        public MainWindow(MainWindowViewModel viewModel)
        {
            InitializeComponent();

            this.DataContext = viewModel;
            viewModel.LinkedWindow = this;
        }
예제 #2
0
      private void DoAction()
      {
          MainWindowViewModel vm = new MainWindowViewModel();
          MainWindow view = new MainWindow(vm);
		  GeneralHelper.SetRevitAsWindowOwner(view);
          view.ShowDialog();
      }