AttachedCommandBehavior.CommandBehavior.OnCommandParameterChanged C# (CSharp) Method

OnCommandParameterChanged() private static method

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