level 14
我想做一个canvas划出来的效果,让canvas的height从1增加到293:
DoubleAnimation DH = new DoubleAnimation(1, 293, TimeSpan.FromSeconds(3));
this.TitleText.BeginAnimation(Canvas.HeightProperty, DH);
可是却没有任何效果。
2014年07月20日 03点07分
1
level 1
DoubleAnimation widthAnimation = new DoubleAnimation(起始宽度, 目标宽度, new Duration(TimeSpan.FromSeconds(0.3)));//0.3是动画过程消耗的时间
newStackPanel.BeginAnimation(控件类型,此处是Canvas.WidthProperty, widthAnimation, HandoffBehavior.Compose);
2014年08月14日 05点08分
3