[Windows Phone]Timer

Timer code runs in WP7:

timer = new DispatcherTimer();
timer.Interval = new TimeSpan(0, 0, 1);//or TimeSpan.FromSeconds(1)
timer.Tick += (sender,e) =>
{
    count++;
    txtTimer.Text = count.ToString();
};
timer.Start();

 

 

blog comments powered by Disqus