This code will trigger aproximately after 5 seconds and will execute on the UI thread through the dispatcher:
This example uses the Task class introduced with .Net 4.
If you need a more precise way to do it the you should look at the Stopwatch class.
No comments:
Post a Comment