Katteker/Example/Bootstrapper.cs

16 lines
351 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()
{
(Shell as Window)?.Show();
}
}
}