WPF 访问资源中的Storyboard

原文:WPF 访问资源中的Storyboard

<UserControl.Resources>
<Storyboard x:Key="testStoryboard">
<DoubleAnimation From="0" To="1" Duration="0:0:1"
Storyboard.TargetName="m_ScrollViewer"
Storyboard.TargetProperty="Opacity" />
</Storyboard>
</UserControl.Resources>

Code:

Storyboard story = (Storyboard)this.FindResource("testStoryboard");
story.Begin();

  

上一篇:如何修改Oracle服务IP地址


下一篇:Java中的内部类(成员内部类、静态内部类、局部内部类、匿名内部类)