Template Binding for Custom Attached Property
问题 I am trying to use an Image in Button Control which animates on Hover and Pressed state by showing different images. Accordingly, I have defined 3 attached properties for the Button Control as given below. public class ButtonExtensions : DependencyObject { public static DependencyProperty ImageSourceProperty = ... public static DependencyProperty ImageHoverSourceProperty = ... public static DependencyProperty ImagePressedSourceProperty = DependencyProperty.RegisterAttached("ImagePressedSource