Error when using StaticResource
- by James Hay
Hi, I'm getting this error
Attribute {StaticResource
StoryboardIntroAnimation} value is out
of range
when I try and use a staic resource as the Storyboard property of a BeginStoryboard object. The markup looks a little like this:
<UserControl ...>
<UserControl.Resources>
<Storyboard x:Key="StoryboardIntroAnimation">
...
</Storyboard>
</UserControl.Resources>
<UserControl.Triggers>
<EventTrigger>
<EventTrigger.Actions>
<BeginStoryboard Storyboard="{StaticResource StoryboardIntroAnimation}" />
</EventTrigger.Actions>
</EventTrigger>
</UserControl.Triggers>
...
</UserControl>
Does anyone know why this is happening?