Windows phone 8 mvvmcross phone 8.1简历显示mainpage.xaml

Windows phone 8 mvvmcross phone 8.1简历显示mainpage.xaml,windows-phone-8,mvvmcross,Windows Phone 8,Mvvmcross,我们使用mvvmcross构建了一个windows phone 8应用程序,启动页面与mainpage.xaml不同。当注册为IAppstart时,它在start和resume中工作得非常好 但是,当它升级到8.1时,我看到在resume事件的App.xaml中调用App_激活的事件,并且只显示MainPage.xaml。 是否可以修改resume事件以显示IAppStart注册的viewmodel 我尝试过的事情: 1.尝试解析IAppStart并调用start。(无例外,但不导航到实际视图)

我们使用mvvmcross构建了一个windows phone 8应用程序,启动页面与mainpage.xaml不同。当注册为IAppstart时,它在start和resume中工作得非常好

但是,当它升级到8.1时,我看到在resume事件的App.xaml中调用App_激活的事件,并且只显示MainPage.xaml。 是否可以修改resume事件以显示IAppStart注册的viewmodel

我尝试过的事情: 1.尝试解析IAppStart并调用start。(无例外,但不导航到实际视图) 2.修改WMAppManifest.xml,使“导航页面”成为实际视图。Windows导航无法找到xaml,这是正确的,因为根据mvvmcross的约定,实际的xaml位于“视图”文件夹中 3.修改WMAppManifest.xml使“导航页”为“Views/ActualView.xaml”,mvvmcross无法为此解析viewmodel


有什么建议吗?

除了取消显示MainPage.xaml的请求之外,我还没有找到其他选项。这可以通过连接根框架来完成。在App.xaml.cs文件的构造函数中导航事件:

RootFrame.Navigating += (s, e) =>
{
    if (e.Uri.ToString().StartsWith("/MainPage.xaml"))
    {
        e.Cancel = true;
    }
};

我们在mainpage.xaml.cs的OnNavigatedTo中找到了另一个东西,编写了返回堆栈的代码:App.RootFrame.GoBack();阅读Todo MVVMCross,你就会得到答案