Standard Approach of Launching Dialogs/Child Windows from a WPF Application using MVVM

前端 未结 6 431
南旧
南旧 2020-12-30 08:41

All, I would like to know the recognised best approach/industry standard of launching [child] dialogs/windows from an WPF using the MVVM pattern. I have come across the foll

6条回答
  •  情深已故
    2020-12-30 08:58

    Purpose of using interface to implement dialogs is to make code testable. In this case, "A" is widely used, but it is still hard to say "Standard". If you do not have test on your ViewModel or you can test your ViewModel avoid touching dialogs, such as using Extract-Override, you can definitely do not follow the instruction.

提交回复
热议问题