private static void OnCommandTargetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { XComboBox owner = (XComboBox)d; owner.UpdateCanExecute(); }
private static void OnCommandChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { XComboBox owner = (XComboBox)d; owner.OnCommandChanged((ICommand)e.OldValue, (ICommand)e.NewValue); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.FontFamily = ((UILayer.XComboBox)(target)); return; case 2: this.comboBoxFont = ((UILayer.XComboBox)(target)); return; case 3: this.ColorPicker1 = ((Xceed.Wpf.Toolkit.ColorPicker)(target)); return; case 4: this.fontItalic = ((UILayer.XToggleButton)(target)); return; case 5: this.fontBold = ((UILayer.XToggleButton)(target)); return; case 6: this.fontUnder = ((UILayer.XToggleButton)(target)); return; case 7: this.alignLeft = ((UILayer.XToggleButton)(target)); return; case 8: this.alignCenter = ((UILayer.XToggleButton)(target)); return; case 9: this.alignRight = ((UILayer.XToggleButton)(target)); return; case 10: this.alignAll = ((UILayer.XToggleButton)(target)); return; case 11: this.ButListBubl = ((System.Windows.Controls.Image)(target)); return; case 12: this.ButListNum = ((System.Windows.Controls.Image)(target)); return; case 13: this.comboWigth = ((System.Windows.Controls.ComboBox)(target)); return; case 14: this.ButtonAddNote = ((System.Windows.Controls.Border)(target)); return; case 15: this.LabelImage = ((System.Windows.Controls.Label)(target)); return; case 16: this.ExportButton = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }