I can't seem to get the background color of my AppBar
to animate using a ColorAnimation
.
<Storyboard x:Name="FadeColorStoryboard">
<ColorAnimation
Storyboard.TargetName="bar"
Storyboard.TargetProperty="(Control.Background).(SolidColorBrush.Color)"
From="Yellow" To="Green" Duration="0:0:1" />
</Storyboard>
I've tested the storyboard by animating the foreground color of a TextBlock
and it works. I there any way that I can animate the AppBar's background color?
I've also tried using a custom attached property to change the background color, but I can't set the TargetProperty of the storyboard to a custom attached property, unlike in Silverlight.