C# 扩展SplashScreen Prism StoreApps Windows Phone 8.1

C# 扩展SplashScreen Prism StoreApps Windows Phone 8.1,c#,windows-phone-8.1,prism,C#,Windows Phone 8.1,Prism,我需要制作加载数据并显示ExtendedSplashScreen 如果我用这个 App.xaml.cs public App() { InitializeComponent(); ExtendedSplashScreenFactory = (splashscreen) => new ExtendedSplashScreen(splashscreen); } ExtendedSplashScreen.xaml.cs public sealed partial class

我需要制作加载数据并显示ExtendedSplashScreen

如果我用这个

App.xaml.cs

public App()
{
    InitializeComponent();

    ExtendedSplashScreenFactory = (splashscreen) => new ExtendedSplashScreen(splashscreen);
}
ExtendedSplashScreen.xaml.cs

public sealed partial class ExtendedSplashScreen : Page
{
    private readonly SplashScreen _splashScreen;

    public ExtendedSplashScreen(SplashScreen splashScreen)
    {
        _splashScreen = splashScreen;

        InitializeComponent();

        SizeChanged += ExtendedSplashScreen_SizeChanged;

        splashImage.ImageOpened += splashImage_ImageOpened;
    }

    void splashImage_ImageOpened(object sender, RoutedEventArgs e)
    {
        Window.Current.Activate();
    }
}
我有异常
无效指针

如何修复或解决此问题?

首先,您使用的是自2014年以来从未更新过的
Prism.Mvvm
软件包。第二,我建议你使用这个软件包。首先,您将使用维护包,其次,它将允许您更新iOS、Android和UWP的解决方案。我意识到这并不能直接回答你的问题,但我相信你会找到一个更好的解决办法。不幸的是,我需要为wp8.1编写legacy。这是我工作的一部分)WP8.1仍然应该由XF和Prism支持。Forms都是PCL,所以XF支持Prism的任何东西都是如此。