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

Win10 UI动画

时间:2016-04-05 19:39:40      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:

                                    <Button Content="Ship via Wells, Fargo &amp; Co." 
                                            HorizontalAlignment="Center" VerticalAlignment="Center"
                                    Padding="20,10" FontSize="16"
                                    RenderTransformOrigin="0.5,0.5">
                                        <Button.RenderTransform>
                                            <ScaleTransform x:Name="scaleTransform" ScaleX="0.98" ScaleY="1.02"/>
                                        </Button.RenderTransform>
                                        <Button.Triggers>
                                            <EventTrigger RoutedEvent="Button.Loaded">
                                                <BeginStoryboard>
                                                    <Storyboard>
                                                        <DoubleAnimation Storyboard.TargetName="scaleTransform"
                                                             Storyboard.TargetProperty="ScaleX"
                                                             From="0.98" To="1.02" Duration="0:0:0.3"
                                                             AutoReverse="True" RepeatBehavior="Forever"/>
                                                        <DoubleAnimation Storyboard.TargetName="scaleTransform"
                                                             Storyboard.TargetProperty="ScaleY"
                                                             From="0.98" To="1.02" Duration="0:0:0.3"
                                                             AutoReverse="True" RepeatBehavior="Forever"/>
                                                    </Storyboard>
                                                </BeginStoryboard>
                                            </EventTrigger>
                                        </Button.Triggers>
                                    </Button>

https://github.com/kgrittner/WPF_Tutorial/blob/a5b4956601481f704df7386b3a225095a72a1e98/ProWPF_C/ToKnow2000/Animation/Scale_Transform.xaml

心跳动画

技术分享

 

Win10 UI动画

标签:

原文地址:http://www.cnblogs.com/luquanmingren/p/5356304.html

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