Code
DispatcherTimer dispatchedtimer;
protected override void OnNavigatedTo(NavigationEventArgs e)
{
dispatchedtimer = new DispatcherTimer();
dispatchedtimer.Tick += dispatchedtimer_Tick;
dispatchedtimer.Interval = new TimeSpan(1000);
dispatchedtimer.Start();
}
void dispatchedtimer_Tick(object sender,object e)
{
//timer event to perform on timer
}
DispatcherTimer dispatchedtimer;
protected override void OnNavigatedTo(NavigationEventArgs e)
{
dispatchedtimer = new DispatcherTimer();
dispatchedtimer.Tick += dispatchedtimer_Tick;
dispatchedtimer.Interval = new TimeSpan(1000);
dispatchedtimer.Start();
}
void dispatchedtimer_Tick(object sender,object e)
{
//timer event to perform on timer
}
Comments
Post a Comment