user2877989
user2877989

Reputation: 701

Does WPF Event queue in Dispatcher list?

I have read about this: "The UI thread queues work items inside an object called a Dispatcher. The Dispatcher selects work items on a priority basis and runs each one to completion." https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/threading-model?view=netframeworkdesktop-4.8

Does work items include control events ?

Upvotes: 1

Views: 137

Answers (1)

mm8
mm8

Reputation: 169320

Yes, the control events, such as for example Button.Clicked, are raised synchronously on the UI/dispatcher thread.

Upvotes: 1

Related Questions