private void txtFromAlias_LostFocus(object sender, RoutedEventArgs e) { FromTabStackPanelControl fromTabSPCntrl = new FromTabStackPanelControl(); DependencyObject parent = fromTabSPCntrl.GetRVC(this.cmbFromTable); if (parent != null) { ResultViewControl rvc = (ResultViewControl)parent; fromTabSPCntrl.UpdateAllControls(rvc); rvc.SelectTabCntrl.ColsToSelectAcc.LayoutChildren(true); } }
private void cmbFromTable_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.cmbFromTable.SelectedIndex > -1) { FromTabStackPanelControl fromTabSPCntrl = new FromTabStackPanelControl(); DependencyObject parent = fromTabSPCntrl.GetRVC(this.cmbFromTable); if (parent != null) { ResultViewControl rvc = (ResultViewControl)parent; fromTabSPCntrl.UpdateAllControls(rvc); rvc.SelectTabCntrl._SelectedColCollection.Clear(); } this.cmbFromTable.Style = ComboboxOriginalStyle; for (int i = 0; i < this.StackPanelFromTab.Children.Count; i++) { FromTabStackPanelControl fs1 = (FromTabStackPanelControl)this.StackPanelFromTab.Children[i]; LoadFromTableColumnComboBox(fs1); } } }