private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as OTCApplicationViewModel; this.BookManagerGrid_.Children.Clear(); this.BookManagerGrid_.Children.Add(this.viewModel_.ApplicationTab_BookViewModel_.View_); this.EventManagerGrid_.Children.Clear(); this.EventManagerGrid_.Children.Add(this.viewModel_.ApplicationTab_EventViewModel_.View_); this.BatchManagerGrid_.Children.Clear(); this.BatchManagerGrid_.Children.Add(this.viewModel_.ApplicationTab_BatchViewModel_.view()); //this.ISDAManagerGrid_.Children.Clear(); //this.ISDAManagerGrid_.Children.Add(this.viewModel_.ApplicationTab_EventViewModel_.View_); }
private void tapViewTestBtn_Click(object sender, RoutedEventArgs e) { OTCApplicationViewModel otcAppVM = new OTCApplicationViewModel(); Window w = new Window(); //w.Width = 800; //w.Height = 400; w.Content = otcAppVM.View_; w.Visibility = 0; }