How can I make sure only one WPF Window is open at a time?

前端 未结 6 990
一整个雨季
一整个雨季 2021-01-14 08:06

I have a WPF window that I am launching from inside of a winform app. I only want to allow once instance of that WPF window to be open at a time, and not warn that user if t

6条回答
  •  情歌与酒
    2021-01-14 08:12

    It would be better make the frmCaseWpf class a singleton. That way you can't create another instance

提交回复
热议问题