private static void OnCommandParameterChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { EventToCommand evt = d as EventToCommand; if (evt != null) { evt.UpdateElementDisabledState(); } }
private static void OnCommandChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { EventToCommand evt = d as EventToCommand; if (evt == null) { return; } evt.OnCommandChanged(e.OldValue as ICommand, e.NewValue as ICommand); }