private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_standardSwapParaViewModel; this.UnderlyingParaInfoGrid_.Children.Clear(); this.UnderlyingParaInfoGrid_.Children.Add(this.viewModel_.Excel_underlyingCalcInfo_paraViewModel_.view()); this.DiscountCurveInfoGrid_.Children.Clear(); this.DiscountCurveInfoGrid_.Children.Add(this.viewModel_.Excel_discountCurve_paraViewModel_.view()); }