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