我在下面做了这个..但双动画intelliscence没有显示...我还有什么方法可以在标签或文本块中来回移动文本
void Window1_Loaded(object sender, RoutedEventArgs e)
{
DoubleAnimation doubleAnimation = new DoubleAnimation();
doubleAnimation.From = -tbmarquee.ActualWidth;
doubleAnimation.To = canMain.ActualWidth;
doubleAnimation.RepeatBehavior = RepeatBehavior.Forever;
doubleAnimation.Duration = new Duration(TimeSpan.Parse("0 : 0 : 10"));
tbmarquee.BeginAnimation(Canvas.LeftProperty, doubleAnimation);