void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.root = ((Test.WindowUsingItemsSourceProperty)(target)); return; case 2: #line 22 "..\..\WindowUsingItemsSourceProperty.xaml" ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.FixedRadioButton_Checked); #line default #line hidden return; case 3: #line 23 "..\..\WindowUsingItemsSourceProperty.xaml" ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.DynamicRadioButton_Checked); #line default #line hidden return; case 4: this.tabControl = ((Wpf.Controls.TabControl)(target)); return; case 5: #line 117 "..\..\WindowUsingItemsSourceProperty.xaml" ((System.Windows.Controls.TextBox)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_GotFocus); #line default #line hidden return; case 6: #line 119 "..\..\WindowUsingItemsSourceProperty.xaml" ((System.Windows.Controls.TextBox)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_GotFocus); #line default #line hidden return; case 7: #line 122 "..\..\WindowUsingItemsSourceProperty.xaml" ((System.Windows.Controls.TextBox)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_GotFocus); #line default #line hidden return; case 8: #line 124 "..\..\WindowUsingItemsSourceProperty.xaml" ((System.Windows.Controls.TextBox)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_GotFocus); #line default #line hidden return; case 9: this.listBox = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }
private void ItemsSource_Click(object sender, RoutedEventArgs e) { var win = new WindowUsingItemsSourceProperty(); win.Show(); }