Animation Silverlight 3控件动画-在同一动画中淡入然后淡出
控件类型为Border,控件名称为brdMessage。如何使故事板在前3秒内淡出控件(不透明度从0到1),然后在接下来的3秒内什么都没有发生,然后在接下来的3秒内淡出控件(不透明度从1到0)? (请用c#代码而不是xaml提供答案)。Animation Silverlight 3控件动画-在同一动画中淡入然后淡出,animation,Animation,控件类型为Border,控件名称为brdMessage。如何使故事板在前3秒内淡出控件(不透明度从0到1),然后在接下来的3秒内什么都没有发生,然后在接下来的3秒内淡出控件(不透明度从1到0)? (请用c#代码而不是xaml提供答案)。 谢谢。我用自动翻转解决了这个问题,但是,如何在倒车前暂停呢 Storyboard sb = new Storyboard(); DoubleAnimation da = new DoubleAnimation(); da.To = 1;
谢谢。我用自动翻转解决了这个问题,但是,如何在倒车前暂停呢
Storyboard sb = new Storyboard();
DoubleAnimation da = new DoubleAnimation();
da.To = 1;
da.Duration = new Duration(TimeSpan.FromSeconds(3));
sb.Children.Add(da);
Storyboard.SetTarget(da, brdStatus);
Storyboard.SetTargetProperty(da, new PropertyPath("Opacity"));
txtMessage.Text = msg;
sb.AutoReverse = true;
sb.Begin();
我用自动翻转解决了这个问题,然而,如何在倒车前暂停呢
Storyboard sb = new Storyboard();
DoubleAnimation da = new DoubleAnimation();
da.To = 1;
da.Duration = new Duration(TimeSpan.FromSeconds(3));
sb.Children.Add(da);
Storyboard.SetTarget(da, brdStatus);
Storyboard.SetTargetProperty(da, new PropertyPath("Opacity"));
txtMessage.Text = msg;
sb.AutoReverse = true;
sb.Begin();