public TR Invoke(object dataContext) { T viewModel = InitViewModel(dataContext); WindowDisplayService.ShowDialog <TR>(_viewType, viewModel, null); return(viewModel.IsConfirmed ? viewModel.Result : default(TR)); }
public override void Invoke(ViewContext viewContext, bool asDialog) { T viewModel = InitViewModel(); WindowDisplayService.ShowDialog <TR>(viewContext.ViewTypeName, viewModel, viewContext.ParentWindow); if (viewModel.IsConfirmed) { _processInteractionResult(viewModel.Result); } }
public virtual void Invoke(ViewContext viewContext, bool asDialog) { var viewModel = InitViewModel(); WindowDisplayService.ShowWindow(viewContext.ViewTypeName, viewModel, asDialog, viewContext.ParentWindow); }
public NavigationService(WindowDisplayService displayService) { _displayService = displayService; }