Skip to content

Difference between DispatcherTimer and DispatcherQueueTimer #4770

Answered by DarranRowe
fabianoriccardi asked this question in Q&A
Discussion options

You must be logged in to vote

Essentially, it is historical and on the UWP side where the Xaml interface was copied from.

Basically, before the DispatcherQueue was added to Windows, the only dispatcher available for UWP applications was the CoreDispatcher. Back then, DispatcherQueueTimer also didn't exist. I hope it is obvious why. The only UI thread timer available was the DispatcherTimer.

Now, when reimplementing Xaml for the desktop environment, changes had to be made to work with that transition. One important difference between the desktop and UWP environments is that the desktop environment doesn't have a CoreDispatcher running. Only a DispatcherQueue is available, which was also reimplemented in Microsoft.UI.Di…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@fabianoriccardi
Comment options

@DarranRowe
Comment options

Comment options

You must be logged in to vote
1 reply
@fabianoriccardi
Comment options

Answer selected by fabianoriccardi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants