BindableApplicationBar.BindableApplicationBarMenuItem.OnIsEnabledChanged C# (CSharp) Method

OnIsEnabledChanged() private static method

Handles changes to the IsEnabled property.
private static OnIsEnabledChanged ( 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 OnIsEnabledChanged(
            DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var target = (BindableApplicationBarMenuItem)d;
            bool oldIsEnabled = (bool)e.OldValue;
            bool newIsEnabled = target.IsEnabled;
            target.OnIsEnabledChanged(oldIsEnabled, newIsEnabled);
        }

Same methods

BindableApplicationBarMenuItem::OnIsEnabledChanged ( bool oldIsEnabled, bool newIsEnabled ) : void