Edward_jie

for you, my Hall of Frame

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  90 随笔 :: 39 文章 :: 538 评论 :: 0 引用

<Canvas >              

   <Canvas.Triggers>

                    <EventTrigger RoutedEvent="Canvas.Loaded" >

                        <BeginStoryboard>

                            <Storyboard x:Name="animation" Storyboard.TargetProperty="(Canvas.Left)" RepeatBehavior="Forever" >

                                <DoubleAnimation Storyboard.TargetName="dd" From="0" To="-400" Duration="0:0:10"  />                                 <DoubleAnimation Storyboard.TargetName="ss" From="400" To="0" Duration="0:0:10"  />

                            </Storyboard>

                        </BeginStoryboard>

                    </EventTrigger>

                </Canvas.Triggers>                

<TextBlock x:Name="dd" Margin="0,0,0,0" Canvas.Left="20" Text="{Binding BingName}"/>          

       <TextBlock x:Name="ss" Margin="0,0,0,0" Canvas.Left="20"  Text="{Binding BingName}"/>   

          </Canvas>

posted on 2013-04-27 23:05 Edward_诺 阅读(...) 评论(...) 编辑 收藏