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