Exemple #1
0
        /// <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>
        /// <param name="settings">The optional window settings.</param>
        protected void DisplayRootViewFor(Type viewModelType, IDictionary <string, object> settings = null)
        {
            var windowManager = IoC.Get <IWindowManager>();

            windowManager.ShowWindow(IoC.GetInstance(viewModelType, null), null, settings);
        }
Exemple #2
0
 /// <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>
 /// <param name="settings">The optional window settings.</param>
 protected async Task DisplayRootViewForAsync(Type viewModelType, IDictionary <string, object> settings = null)
 {
     var windowManager = IoC.Get <IWindowManager>();
     await windowManager.ShowWindowAsync(IoC.GetInstance(viewModelType, null), null, settings);
 }