I have a little problem with my application.
I would like to update something in my interface every 10 seconds. At first I used DispatcherTimer for this, but it will block my user interface for a short time, because the update method has to download something from the Internet, and this operation takes some time. Now I was thinking of some kind of background worker, and I found BackgroundTasks.
The problem with background tasks, as I understand it, is correct that they should serve as updates, even if the application is paused. I do not need it. I would only like to update if my application is running, if it is paused.
Is there a good way to solve this problem? Any suggestions what to use for this?
Thanks in advance!
source share