I am trying to animate a hyperlink foreground color when a MouseOver user controls. I created my own style in which I want to animate the foreground color. Foreground color set this way
<Setter Property="Foreground" Value="#FF73A9D8"/>
In the visualStateManager section, I have the following item for color animation
<ColorAnimation Duration="0:0:0.5"
Storyboard.TargetName="contentPresenter"
Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)"
To="Black" />
The problem is that I cannot figure out what the value of Storyboard.TargetName should be.
The text is set in a ContentPresenter control that does not have a Foreground property.
source
share