我收到此错误
属性 {StaticResource StoryboardIntroAnimation} 值超出范围
当我尝试使用静态资源作为 BeginStoryboard 对象的 Storyboard 属性时。标记看起来有点像这样:
<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>
有谁知道为什么会这样?