siverlight的定时器

using System.Windows.Threading;

         DispatcherTimer timer = new DispatcherTimer();

         timer.Interval = new TimeSpan(0, 0, 1);
         timer.Tick += new EventHandler(timer_Tick);

         timer.Start();

 

 void timer_Tick(object sender, EventArgs e)
        {

        }

你可能感兴趣的:(siverlight的定时器)