码迷,mamicode.com
首页 > Windows程序 > 详细

wpf 旋转效果

时间:2016-04-15 13:49:39      阅读:689      评论:0      收藏:0      [点我收藏+]

标签:

<Grid>
<Grid.Triggers>
<EventTrigger RoutedEvent="Page.Loaded">
<BeginStoryboard>
<Storyboard RepeatBehavior="Forever" >
<DoubleAnimation Storyboard.TargetName="borderForm" Storyboard.TargetProperty="Angle" By="360" Duration="0:0:1" />
<DoubleAnimation Storyboard.TargetName="border1" Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:1" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Grid.Triggers>
<Border x:Name="border1" Height="90" Width="90" BorderThickness="1,0,0,0" BorderBrush="Red" CornerRadius="90">
<Border.RenderTransform>
<RotateTransform x:Name="borderForm" Angle="0" CenterX="45" CenterY="45"/>
</Border.RenderTransform>
</Border>
</Grid>

wpf 旋转效果

标签:

原文地址:http://www.cnblogs.com/Logan626/p/5395050.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!