public virtual DragDropEffects OnDrop(DragEventArgs eData, IInputElement inputElement) { var command = Command; if (command != null) { RibbonDebugUtils.WriteLine(command.GetType().ToString()); if (command is RoutedCommand cmd) { cmd.Execute(eData.Data, inputElement); } else { command.Execute(eData.Data); } eData.Handled = true; return(DragDropEffects.Copy); } return(DragDropEffects.None); }
// ReSharper disable once VirtualMemberNeverOverridden.Global protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) { RibbonDebugUtils.OnPropertyChanged(this, propertyName); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); }