I have a problem with color animation. This is my source:
When I came across this problem I worked around it by modifying my style to contain two identical elements on top of each other - one for the 'normal' state and one for the 'pressed' state. The 'pressed' one had its Opacity
set to 0 by default and the other one had an Opacity
of 1. My animation changed the opacities from 0 to 1 and vice versa.
This approach avoided actually animating the Color
property but produced the same effect whilst keeping everything in XAML. As the colours were set in the style definition rather than the animation they could be bound as required. This will probably not be suitable for all situations but for my fairly simple style it was a very quick way to achieve the desired effect.