我得到了这个错误
属性{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>有人知道为什么会这样吗?
发布于 2009-09-29 12:53:37
把RoutedEvent设置在你的EventTrigger上?
https://stackoverflow.com/questions/1492300
复制相似问题