public EventCommandModel(EventCommandAttribute attr, QPP.Command.ICommand command) { Name = attr.Name; EventName = attr.EventName; Target = attr.Target; Command = command; }
public RelayCommandModel(RelayCommandAttribute attr, QPP.Command.ICommand command) { Command = command; Name = attr.Name; Target = attr.Target; Usage = attr.Usage; Icon = attr.Icon; VisibleIndex = attr.VisibleIndex; BeginGroup = attr.BeginGroup; if (attr.Key != System.Windows.Input.Key.None) InputGestures.Add(new System.Windows.Input.KeyGesture(attr.Key, attr.ModifierKeys)); }
internal override void UpdateThemeResources( QPP.Wpf.UI.Controls.AvalonDock.Theme oldTheme = null ) { base.UpdateThemeResources(oldTheme); if (_overlayWindow != null) _overlayWindow.UpdateThemeResources(oldTheme); }
//获得选择的值 private object GetMultiComboBoxSelectionValue(QPP.Wpf.UI.Controls.MultiComboBox.MultiComboBox comboBox) { if (this.SelectedItemBinding != null) { return comboBox.SelectedItem; } if (this.SelectedValueBinding != null) { return comboBox.SelectedValue; } return comboBox.SelectedValue; }
private void ApplyColumnProperties(QPP.Wpf.UI.Controls.MultiComboBox.MultiComboBox comboBox) { ApplyBinding(this.SelectedItemBinding, comboBox, Selector.SelectedItemProperty); ApplyBinding(this.SelectedValueBinding, comboBox, Selector.SelectedValueProperty); }
protected virtual void OnPreExecute(QPP.Command.CancelCommandEventArgs e) { if (PreExecute != null) PreExecute(this, e); }
protected virtual void OnExecuted(QPP.Command.CommandEventArgs e) { if (Executed != null) Executed(this, e); }