private Storyboard _newsScrollTimer = new Storyboard(); _newsScrollTimer.Duration = TimeSpan.FromMilliseconds(0); _newsScrollTimer.Completed += new EventHandler(Animation); _newsScrollTimer.Begin(); private void Animation(object sender, EventArgs e) { try { //Moves the news item using its canvas property. NewsItem.SetValue(Canvas.LeftProperty, (double)NewsItem.GetValue(Canvas.LeftProperty) - 1.5); _newsScrollTimer.Begin(); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)