Reputation: 701
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
Reputation: 169320
Yes, the control events, such as for example Button.Clicked
, are raised synchronously on the UI/dispatcher thread.
Upvotes: 1