private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_stepDownKICustomViewModel; this.IssueInfoGrid_.Children.Clear(); this.IssueInfoGrid_.Children.Add(this.viewModel_.Excel_issueInfoViewModel_.view()); this.UnderlyingInfoGrid_.Children.Clear(); this.UnderlyingInfoGrid_.Children.Add(this.viewModel_.Excel_underlyingCalcInfoViewModel_.view()); this.StepDownKICustomGrid_.Children.Clear(); this.StepDownKICustomGrid_.Children.Add(this.viewModel_.Excel_hifive_StepDownKI_ViewModel_.view()); }