void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.gridLayout = ((System.Windows.Controls.Grid)(target)); return; case 2: this.rectTemp = ((System.Windows.Shapes.Rectangle)(target)); return; case 3: this.ptbtnAppend = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 99 "..\..\..\..\Views\Panels\ChatView.xaml" this.ptbtnAppend.Click += new System.Windows.RoutedEventHandler(this.ptbtnAppend_Click); #line default #line hidden return; case 4: this.rectMsgW = ((System.Windows.Shapes.Rectangle)(target)); return; case 5: this.chatBox = ((CSClient.Views.Controls.ChatBox)(target)); return; case 6: this.btnHistoryMsg = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 122 "..\..\..\..\Views\Panels\ChatView.xaml" this.btnHistoryMsg.Click += new System.Windows.RoutedEventHandler(this.btnHistoryMsg_Click); #line default #line hidden return; case 7: this.btnAt = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 151 "..\..\..\..\Views\Panels\ChatView.xaml" this.btnAt.Click += new System.Windows.RoutedEventHandler(this.btnAt_Click); #line default #line hidden return; case 8: this.btnSend = ((System.Windows.Controls.Button)(target)); return; case 9: this.msgEditor = ((CSClient.Views.Controls.MessageEditor)(target)); return; case 10: this.btnClear = ((System.Windows.Controls.Button)(target)); return; case 11: this.btnHistory = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 190 "..\..\..\..\Views\Panels\ChatView.xaml" this.btnHistory.Checked += new System.Windows.RoutedEventHandler(this.btnHistory_Click); #line default #line hidden return; case 12: this.ppBD = ((System.Windows.Controls.Border)(target)); return; case 13: this.scale = ((System.Windows.Media.ScaleTransform)(target)); return; } this._contentLoaded = true; }
private static void OnItemsSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ChatBox target = d as ChatBox; target.lsb.ItemsSource = e.NewValue as IEnumerable; }