Thread.Join UI block in WPF

后端 未结 2 1701
傲寒
傲寒 2021-01-16 05:00

I created a custom MessageWindow in order to get rid of the old one and put my own style on it...

My problem is when I for example click a button to ope

2条回答
  •  忘掉有多难
    2021-01-16 05:40

    You shouldn't create a new thread for the other window. When using WPF, all UI should run on the same thread.

    Create new threads when you want to do something that is unrelated to UI and don't want to block the UI.

提交回复
热议问题