/// <summary> /// Locates the view model, locates the associate view, binds them and shows it as the root view. /// </summary> /// <param name="viewModelType">The view model type.</param> protected static void DisplayRootViewFor(Type viewModelType) { IWindowManager windowManager; try { windowManager = IoC.Get<IWindowManager>(); } catch { windowManager = new WindowManager(); } windowManager.ShowWindow(IoC.GetInstance(viewModelType, null)); }