我需要使用 FreshMVVM 的新导航页面。在使用 PushPageModelWithNewNavigation 时,视图大小发生了变化,但在使用 PushPageModel 时它是完美的。请提出解决方案或解释两者之间的区别?
public class PageModel : FreshBasePageModel
{
public Command GoToDoc => new Command(async () => await GoToViewer());
public Command GoToPage => new Command(async () => await GoToNewMain());
private async Task GoToViewer()
{
await CoreMethods.PushPageModelWithNewNavigation<PdfViewPageModel>(null, true);
}
private async Task GoToNewMain()
{
await CoreMethods.PushPageModel<PageModel>(null, false, true);
}