AttachedCommandBehavior.CommandBehavior.OnCommandChanged C# (CSharp) Method

OnCommandChanged() private static method

Handles changes to the Command property.
private static OnCommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void
        private static void OnCommandChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CommandBehaviorBinding binding = FetchOrCreateBinding(d);
            binding.Command = (ICommand) e.NewValue;
        }