Exemple #1
0
        protected static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            EnableImage This = d as EnableImage;

            if (!e.NewValue.Equals(This.DisabledSource))
            {
                This.GenerateSources(e.NewValue as ImageSource);
            }
        }
Exemple #2
0
        protected static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            EnableImage This = d as EnableImage;

            This.UpdateSource();
        }