CodePudding user response:
How do you know the 500 ms delay?CodePudding user response:
Because of waiting for the UI thread free.DispatcherTimer unlike other Timer, I'll do as you want to run on the UI thread, if the interface element is complex, the UI thread to refresh the task is more, will be unstable, need to wait for the UI thread free to continue to do.