It depends on what your bootstrapper does, but Prism.Unity.PrismApplication
has similar methods to override, so you should be able to copy the code over from the bootstrapper. Probably you only need RegisterTypes
and CreateShell
. Remember to update App.xaml
to change the type of your application...
App.xaml
should be something like this:
<prism:PrismApplication x:Class="WpfApp1.App"
x:ClassModifier="internal"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:prism="http://prismlibrary.com/"/>
and for completeness' sake, App.xaml.cs
:
internal partial class App
{
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
throw new NotImplementedException();
}
protected override Window CreateShell()
{
throw new NotImplementedException();
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…