void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this._window = ((Xceed.Wpf.Toolkit.RichTextBoxFormatBar)(target)); return; case 2: this._dragWidget = ((System.Windows.Controls.Primitives.Thumb)(target)); #line 371 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml" this._dragWidget.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.DragWidget_DragDelta); #line default #line hidden return; case 3: this._cmbFontFamilies = ((System.Windows.Controls.ComboBox)(target)); #line 378 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml" this._cmbFontFamilies.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FontFamily_SelectionChanged); #line default #line hidden return; case 4: this._cmbFontSizes = ((System.Windows.Controls.ComboBox)(target)); #line 384 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml" this._cmbFontSizes.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FontSize_SelectionChanged); #line default #line hidden return; case 5: this._btnBullets = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 393 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml" this._btnBullets.Click += new System.Windows.RoutedEventHandler(this.Bullets_Clicked); #line default #line hidden return; case 6: this._btnNumbers = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 402 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml" this._btnNumbers.Click += new System.Windows.RoutedEventHandler(this.Numbers_Clicked); #line default #line hidden return; case 7: this._btnBold = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 8: this._btnItalic = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 9: this._btnUnderline = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 10: this._btnAlignLeft = ((System.Windows.Controls.RadioButton)(target)); return; case 11: this._btnAlignCenter = ((System.Windows.Controls.RadioButton)(target)); return; case 12: this._btnAlignRight = ((System.Windows.Controls.RadioButton)(target)); return; case 13: this._cmbFontBackgroundColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 14: this._cmbFontColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; } this._contentLoaded = true; }
private static void OnRichTextBoxPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RichTextBoxFormatBar formatBar = d as RichTextBoxFormatBar; }