I have an IDialogService that is responsible for showing my dialogs/popups. The implementation of the service creates a scoped region and uses the RequestNavigate method to navigate to the view in the dialog/popup. Very simple. Keep in mind, that your ViewModel should never declare or initialize a dialog or view directly. So in your DelegateCommand you would call _dialogService.Show(string viewURI) or something similar.
↧