这是我的最后一个问题:How to navigate from Xamarin forms viewmodels using mvvmcross它已经通过使用MvvmCorss5.5.2解决了,也许它之前是一个bug . 现在问题是,虽然我可以从MvxContentPage导航到MvxWindowsPage,但我无法返回 . 并且没有错误/异常抛出 . SqwxSumPage是一个MvxContetntPage,SwqxPage是一个MvxWindowsPage . 这是代码 .

///GoToCommand in the firstViewModel(SqwxSumViewModel)

public ICommand GoToCommand
        {
            get
            {
                return new Command((e) =>
                {
                    _navigationService.Navigate<SwqxViewModel>();
                });
            }  
        }

///GoBackCommand in the secondtViewModel(SqwxViewModel)

public IMvxCommand GoBackCommand
        {
            get
            {
                return new MvxCommand(() =>
                {
                    _navigationService.Navigate<SwqxSumViewModel>();
                });
            }
        }