WPF MVVM Thread annoyance

In WinForms one of the annoyances is that any GUI operation requires invoking GUI thread to do it. I wrote a blog article on a quick hack to bypass it. I was really hoping this limitation was gone in WPF, but alas…

Lately I’ve been refactoring my IRC client to use a MVVM-like architecture. In MVVM ViewModel should not know of GUI in any way. WPF has a lot of goodies that works well with MVVM. But both BindingList and DependencyProperty requires GUI thread invokation…???

Basically this means that manipulation of lists in ViewModel requires a reference to GUI to pick up GUI-thread?

ARGH! 🙂

image

Leave a Reply

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

Discover more from Tedds blog

Subscribe now to keep reading and get access to the full archive.

Continue reading