The question is self-explanatory.I have designed a counter app to run in background but I can't seem to find a way to run it in background.
I created a background worker then add the following code to it runworkerasync method:
void bw_DoWork(object sender, DoWorkEventArgs e)
{
Dispatcher.BeginInvoke(() => {
timer.Start();
});
}
And this code just gets paused whenever I navigate away from the app.Any ideas to make it work?
The answer is "No" . App tombstones or deactivates as soon it is moved to the bac
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.