我想在我的 prism 应用程序(prism 7)中的 shell 之前显示登录屏幕,所以我不知道该怎么做,因为 app.xaml.cs 类文件中没有 OnStartup() 方法,我在引导程序之前显示登录窗口负载。以前在 prism 5 中进行登录时,我在引导程序之前打开了一个登录窗口。如果凭据正确,则加载引导程序。请帮帮我。
// app.xaml.cs file
public partial class App
{
protected override Window CreateShell()
{
return Container.Resolve<Shell>();
}
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
}
protected override IModuleCatalog CreateModuleCatalog()
{
return new ConfigurationModuleCatalog();
//return new DirectoryModuleCatalog() { ModulePath = Environment.CurrentDirectory };
}
}