I have a Windows Phone 7 app with a page and a StackPanel on this page.
StackPanel contains several TextBlock elements.
I need to animate the color of all TextBlock elements in the same way.
Unfortunately, when I set ColorAnimationUsingKeyFrames, I can only specify one TargetName. Since there are several TextBlock controls that need to be animated the same way, this is rather inconvenient, and I suspect there should be a better way to handle this by copying the inserts of n ColorAnimation definitions, one for each text block for animation.
Any ideas on how to set up color animation to apply multiple controls at once?
EDIT: I understand this is a WP7 question, but I marked it with WPF, as I believe the same method applies to both, but feel free to fix me if I am wrong.
source
share