16 lines
364 B
C#
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();
|
|
}
|
|
}
|
|
} |