daixinet

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
<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();

  

posted on 2012-06-06 09:14  daixinet.com  阅读(2348)  评论(0编辑  收藏  举报