Show WPF window from test unit

前端 未结 2 604
谎友^
谎友^ 2020-12-10 08:37

I am running a test unit (and learning about them). Quite simply, my unit creates a List and passes it to my MainWindow.

The issue I have is after I show()

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 09:07

    Of course, since it is only for testing, using

    ShowDialog() 
    

    may be an option instead of 'Show()'

提交回复
热议问题