Opening a WPF Window in another Thread from a Windows Forms App

后端 未结 3 895
日久生厌
日久生厌 2021-02-15 19:27

OK, I should start this off by saying I\'m not sure this is necessarily the right way to deal with this but...

Basically I have created a Window in WPF for displaying no

3条回答
  •  故里飘歌
    2021-02-15 19:44

    You should display the notification using the main UI thread and if that window is going to perform any work, run that work in a background thread. You should not use more than one thread to access or create UI objects, not even if you don't share those objects between threads.

提交回复
热议问题