Setting Border background with a template binding
问题 Value="{TemplateBinding HeaderColor}"I've created my own control, and I'm wondering if I can bind a Border.Background to a template property. Currently i'm setting it with a StaticResource like the following: <Color x:Key="ControlMouseOverColor">green</Color> <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="headerLayout"> <EasingColorKeyFrame KeyTime="0:0:6" Value="{StaticResource