摘要:
定义动画:直接使用Element进行BeginAnimation DoubleAnimation animation = new DoubleAnimation(); animation.By = 100; animation.Duration = TimeSpan.FromSeconds(1); btnTest.BeginAnimation(Button.WidthProperty, animation);也可以将Animation添加到StoryBoard中去,这样可以一次执行多个动画: ... 阅读全文