Here’s the problem – system Dialogs (MessageBox.Show) and custom Dialogs (Window.ShowDialog) dont fit very well into the MVVM design pattern, and it is notoriously hard to test ViewModels that need to spawn dialogs. The answer, is a really simple solution – which I call IDialogFactory. Essentially, this factory class will have a method, which returns […]
↧