Resolving Target Names from Storyboard in Resource Dictionary in Silverlight Navigation Application

I have a storyboard that animates Ellipse in Navigation: Page Control. As long as I keep the Storyboard locally inside UserControl.Resources, the animation runs without issue.

I moved Storyboard to the resource dictionary to make it cross-page accessible. I can access the Storyboard as expected, but the application throws an exception when the Storyboard tries to find an element to animate. I get the error "Can't resolve TargetName".

My guess is that since this is a Silverlight navigation app, Storyboard needs to know about the app hierarchy in order to get to the page to find the end goal - I just don't know how :)

+2


source to share


1 answer


Does it use any inherited styles? I have this exact problem when using inherited styles. If I translate all of this into the same resource dictionary, or all in the custom control, then it works fine.



If not, please post a sample code and I can take a look.

0


source







All Articles