ModernWpfPlayground/App.xaml.cs
2020-03-29 22:13:38 +02:00

23 lines
532 B
C#

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>();
}
}
}