AttachedCommandBehavior.CommandBehavior.OnActionChanged C# (CSharp) Method

OnActionChanged() private static method

Handles changes to the Action property.
private static OnActionChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void
        private static void OnActionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CommandBehaviorBinding binding = FetchOrCreateBinding(d);
            binding.Action = (Action<object>) e.NewValue;
        }