I want to make a Style that can be applied to a TextBlock to create a loading text control. All I want is for the text’s opacity to pulse from 0 to 1 and back until I hide the control.
I know how to set up the double animation on the opacity, but I don’t know how to attach the storyboard to the textblock in a style.
Can this be done? If so, how would you do it?
Thanks!
Here is a simple example (although ordinarily I’d put storyboards in a resource).
BTW, Just in case, yes general richness of Triggers as found in WPF is not supported in Silverlight but the Loaded event is a special case.