WPF MVVM dialog example
Does anyone have any examples of showing a window dialog using MVVM (Prism)? - for example a configuration settings window when a command is executed. All of the examples I've seen use the mediator pattern which is fine, but they also all have a reference to the view in the view model which is not ideal (we're using DataTemplates) Thanks Cameron MacFarland I would use a service to display the dialog. The service can then also link views with viewmodels. public interface IDialogService { void RegisterView<TView, TViewModel>() where TViewModel:IDialogViewModel; bool? ShowDialog(IDialogViewModel