private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as CreditInstrumentViewModel; this.InformationGrid_.Children.Clear(); this.UnderlyingGrid_.Children.Clear(); this.PayoffGrid_.Children.Clear(); this.InformationGrid_.Children.Add(this.viewModel_.IssueInfoViewModel_.View_); //this.UnderlyingGrid_.Children.Add(this.viewModel_.UnderlyingViewModel_.View_); this.PayoffGrid_.Children.Add(this.viewModel_.CreditPayoffInfoViewModel_.View_); }