1.在NuGet上输入控件集
Prism.Unity
2.在App.xaml上删除StartUri入口
3.创建程序入口类Bootstrapper
public class Bootstrapper : PrismBootstrapper
{
protected override DependencyObject CreateShell()
{
return Container.Resolve<FirstWindow>();//firstWindow is customer window
}
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
}
}