level 14
我用下面代码创建了一个动画,想实现按钮的渐入效果,但是按钮是直接出现的,而不是缓慢出现。。。
DoubleAnimation EnterButton = new DoubleAnimation(0, 100, TimeSpan.FromSeconds(3));
this.Enter.BeginAnimation(Button.OpacityProperty, EnterButton);
2014年07月23日 10点07分
1
level 5
透明度的取值范围是0到1的小数,你设置了100,当然会这样啦!
2014年07月31日 10点07分
2