Monday, June 30, 2014

How to Implement Timer for Windows 8.1 Store App in C#

Will this do the trick?



DispatcherTimer timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(10);
timer.Tick += timer_Ticker;
timer.Start();

private void timer_Ticker(object sender, EventArgs e)
{
// Do stuff
}


No comments:

Post a Comment