WPF中没有Timer控件,所以需要用另外一个类来实现此功能。 DispatcherTimer timer = new DispatcherTimer(); timer.Tick += new EventHandler(timer_Tick); timer.Interval = TimeSpan.FromMilliseconds(350); timer.Start(); void timer_Tick(object sender, EventArgs e) { ///触发代码 }