/// <summary> /// Initializes a new instance of the <see cref="ViewContext"/> class. /// </summary> /// <param name="unityContainer">An instance of <see cref="IUnityContainer"/>.</param> /// <param name="modalManager">An instance of <see cref="ModalNavigator"/>.</param> /// <param name="navigationManager">An instance of <see cref="NavigationManager"/>.</param> /// <param name="regionManager">An instance of Prism <see cref="RegionManager"/>.</param> /// <param name="logger">An instance of <see cref="ILoggerFacade"/>.</param> public ViewContext(IUnityContainer unityContainer, ModalNavigator modalManager, NavigationManager navigationManager, IRegionManager regionManager, ILoggerFacade logger) : base(unityContainer, logger) { this.modalManager = modalManager; this.navigationManager = navigationManager; this.regionManager = regionManager; }
/// <summary> /// Handles the ShowMessageBox event raised by the view model. /// </summary> /// <param name="sender">The view model.</param> /// <param name="e">Message box settings.</param> protected static void ShowMessageBox(object sender, MessageBoxSettings e) { ModalNavigator.ShowMessageBox(e); }