Katteker/Example/Bootstrapper.cs
2018-07-31 20:58:55 +02:00

16 lines
364 B
C#

using System.Windows;
using Autofac;
using Prism.Autofac;
namespace Example
{
public class Bootstrapper : AutofacBootstrapper
{
protected override DependencyObject CreateShell() => Container.Resolve<MainWindow>();
protected override void InitializeShell()
{
Application.Current.MainWindow?.Show();
}
}
}