private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_crsViewModel; //this.FxExchangeGrid_.Children.Clear(); //this.FxExchangeGrid_.Children.Add(this.viewModel_.Excel_issueInfoViewModel_.view()); this.swapLegFirstGrid_.Children.Clear(); this.swapLegFirstGrid_.Children.Add(this.viewModel_.Excel_swapLegViewModel_[0].view()); this.swapLegSecondGrid_.Children.Clear(); this.swapLegSecondGrid_.Children.Add(this.viewModel_.Excel_swapLegViewModel_[1].view()); }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_crsViewModel; //this.FxExchangeGrid_.Children.Clear(); //this.FxExchangeGrid_.Children.Add(this.viewModel_.Excel_issueInfoViewModel_.view()); this.swapLegFirstGrid_.Children.Clear(); this.swapLegFirstGrid_.Children.Add(this.viewModel_.Excel_swapLegViewModel_[0].view()); this.swapLegSecondGrid_.Children.Clear(); this.swapLegSecondGrid_.Children.Add(this.viewModel_.Excel_swapLegViewModel_[1].view()); }