BindableApplicationBar.BindableApplicationBarMenuItem.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 /// The on which /// the property has changed value. ///
e System.Windows.DependencyPropertyChangedEventArgs /// Event data that is issued by any event that /// tracks changes to the effective value of this property. ///
return void
        private static void OnCommandChanged(
            DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var target = (BindableApplicationBarMenuItem)d;
            ICommand oldCommand = (ICommand)e.OldValue;
            ICommand newCommand = target.Command;
            target.OnCommandChanged(oldCommand, newCommand);
        }

Same methods

BindableApplicationBarMenuItem::OnCommandChanged ( ICommand oldCommand, ICommand newCommand ) : void