installed prism

This commit is contained in:
2020-03-29 22:13:38 +02:00
parent 59d93a0212
commit bd7f504a56
5 changed files with 22 additions and 8 deletions

View File

@@ -1,9 +1,22 @@
namespace ModernWpfPlayground
using System.Windows;
using Prism.Ioc;
namespace ModernWpfPlayground
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App
{
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
containerRegistry.Register<MainWindow>();
containerRegistry.Register<WindowViewModel>();
}
protected override Window CreateShell()
{
return Container.Resolve<MainWindow>();
}
}
}