WPF UI Responsiveness

All window objects are associated with the dispatcher where it has been created.

Golden rules:

  1. Any UI element must be touched from the same UI thread that created it
  2. Don’t block the UI thread

How to execute slow work then?

In summary,

  • perform slow work asynchronously
  • update the UI using the Dispatcher.BeginInvoke



DispatcherPriority list ….

Windows forms way:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.