当前位置:首页 > c#代码库 > WPF > 宽度动画

宽度动画

点击次数:1734  更新日期:2018-12-05
//动画效果
DoubleAnimation doubleAnimation = new DoubleAnimation(0,200, new Duration(TimeSpan.FromSeconds(1)));
rectangle2.BeginAnimation(Rectangle.WidthProperty, doubleAnimation);