this.Refresh(); myLabel2.Left += 5; if (myLabel2.Left >= this.Width) { myLabel2.Left = myLabel2.Width * -1; }
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); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)