public bool ShowConfirmationDialog(string messageText) { var message = _messenger.CreateMessage <ShowChildWindowMessage>(); var viewModel = (ConfirmDialogViewModel)_viewModelFactory.GetChild <ConfirmDialogViewModel>(messageText); message.Content = viewModel; message.IsDialog = true; _messenger.Send(message); return(viewModel.Status); }
public void NavigateForward <TViewModelTo>(BaseViewModel from, object param) where TViewModelTo : BaseViewModel { BaseViewModel next = null; var existing = _storage.TryRemoveExisting <TViewModelTo>(from); if (existing != null) { next = existing; } else { var to = _childrenViewModelsFactory.GetChild <TViewModelTo>(param); next = _storage.Next(from, to); } RaiseContentChanged(next); }