private static void OnSelectedItemsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { UserControlComboBox control = (UserControlComboBox)d; control.SelectNodes(); control.SetText(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.time1 = ((System.Windows.Controls.DatePicker)(target)); return; case 2: this.time2 = ((System.Windows.Controls.DatePicker)(target)); return; case 3: this.comboCountry = ((WpfAppHoliday.UserControls.UserControlComboBox)(target)); return; case 4: this.comboAirports = ((WpfAppHoliday.UserControls.UserControlComboBox)(target)); return; case 5: this.comboPeople = ((System.Windows.Controls.ComboBox)(target)); return; case 6: this.comboFood = ((WpfAppHoliday.UserControls.UserControlComboBox)(target)); return; case 7: this.comboVehicles = ((WpfAppHoliday.UserControls.UserControlComboBox)(target)); return; case 8: this.textNumberOfferts = ((System.Windows.Controls.TextBox)(target)); #line 48 "..\..\MainWindow.xaml" this.textNumberOfferts.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput); #line default #line hidden return; case 9: this.textInfo = ((System.Windows.Controls.TextBlock)(target)); return; case 10: this.textInfoMail = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.tabControlOfferts = ((System.Windows.Controls.TabControl)(target)); return; case 12: #line 72 "..\..\MainWindow.xaml" ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked); #line default #line hidden return; case 13: #line 75 "..\..\MainWindow.xaml" ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked); #line default #line hidden return; case 14: this.comboTime = ((System.Windows.Controls.ComboBox)(target)); return; case 15: this.checkMail = ((System.Windows.Controls.CheckBox)(target)); return; } this._contentLoaded = true; }
private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { UserControlComboBox control = (UserControlComboBox)d; control.DisplayInControl(); }