Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is timer in a Windows store app?

I could not find the Timer when developing a Windows Store App in c#. What is the alternative /new name/way of use of it?

like image 358
Tom Avatar asked Dec 08 '12 00:12

Tom


1 Answers

DispatcherTimer is what you are looking for

var timer = new DispatcherTimer();
timer.Tick += DispatcherTimerEventHandler;
timer.Interval = new TimeSpan(0,0,0,1);
timer.Start();
like image 142
Mayank Avatar answered Oct 06 '22 20:10

Mayank