Esempio n. 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);
            }
        }
Esempio n. 2
0
        protected static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            EnableImage This = d as EnableImage;

            This.UpdateSource();
        }