void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.rbtnAll = ((System.Windows.Controls.RadioButton)(target)); #line 25 "..\..\..\..\Views\Panels\ChatHistoryView.xaml" this.rbtnAll.Checked += new System.Windows.RoutedEventHandler(this.Type_Checked); #line default #line hidden return; case 2: #line 26 "..\..\..\..\Views\Panels\ChatHistoryView.xaml" ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.Type_Checked); #line default #line hidden return; case 3: #line 27 "..\..\..\..\Views\Panels\ChatHistoryView.xaml" ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.Type_Checked); #line default #line hidden return; case 4: this.pbtnMore = ((IMCustomControls.PopupToggleButton)(target)); return; case 5: this.ptbtnCalendar = ((IMCustomControls.PopupToggleButton)(target)); return; case 6: this.ppMore = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 7: #line 38 "..\..\..\..\Views\Panels\ChatHistoryView.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 8: this.ppCalendar = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 9: this.calendar = ((System.Windows.Controls.Calendar)(target)); #line 43 "..\..\..\..\Views\Panels\ChatHistoryView.xaml" this.calendar.SelectedDatesChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.calendar_SelectedDatesChanged); #line default #line hidden #line 43 "..\..\..\..\Views\Panels\ChatHistoryView.xaml" this.calendar.AddHandler(System.Windows.ContentElement.PreviewMouseUpEvent, new System.Windows.Input.MouseButtonEventHandler(this.calendar_PreviewMouseUp)); #line default #line hidden return; case 10: this.sv = ((System.Windows.Controls.ScrollViewer)(target)); return; case 11: this.rictBox = ((System.Windows.Controls.RichTextBox)(target)); return; case 12: this.cmMenu = ((System.Windows.Controls.ContextMenu)(target)); return; case 13: this.flowDoc = ((CSClient.Helper.FlowDocumentEx)(target)); return; case 14: this.aniLoading = ((CSClient.Views.Controls.AnimationLoading)(target)); return; } this._contentLoaded = true; }
private static void OnItemsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { FlowDocumentEx doc = d as FlowDocumentEx; doc.RefreshContent(); }