BindableApplicationBar.BindableApplicationBarButton.OnIsEnabledChanged C# (CSharp) Méthode

OnIsEnabledChanged() private static méthode

Handles changes to the IsEnabled property.
private static OnIsEnabledChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject /// The on which /// the property has changed value. ///
e DependencyPropertyChangedEventArgs /// Event data that is issued by any event that /// tracks changes to the effective value of this property. ///
Résultat void
        private static void OnIsEnabledChanged(
            DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var target = (BindableApplicationBarButton)d;
            bool oldIsEnabled = (bool)e.OldValue;
            bool newIsEnabled = target.IsEnabled;
            target.OnIsEnabledChanged(oldIsEnabled, newIsEnabled);
        }

Same methods

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