Xamarin形成反向PushModalAsync

Xamarin形成反向PushModalAsync

本文介绍了Xamarin形成反向PushModalAsync的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此在Xamarin中,拉动新页面的一种导航方法是PushModalAsync调用,该调用带来了一个没有任何 normal 导航部分的新页面.但是如果没有像后退"按钮这样的部件,也会消除向后导航的能力...那么,有没有一种方法本身可以实现联合国推送模式同步?调出页面,然后放回页面,例如按一个按钮或类似的东西吗?我知道Push Async可以做到这一点,但是我希望整个页面都没有顶部的导航栏.与其他所有页面分开的页面,可以拉起和拉回去.

So in Xamarin, one of the navigational methods of pulling up a new page is the PushModalAsync call, which brings a new page without any normal navigational pieces. But not having pieces like a back button also removes the ability to navigate backwards... So is there a way to UN-pushmodalasync per se? Call up a page and then put it back down, like with a button or something along those line? I know Push Async does that, but I'd like the full page without the navigation bar at the top. A page separate from everything else that can be pulled up and pushed back down.

推荐答案

要关闭Forms模式,请使用PopModalAsync().您必须在页面上添加一个触发此操作的按钮或其他控件.

to dismiss a Forms modal, use PopModalAsync(). You will have to add a button or some other control on your page that triggers this.

这篇关于Xamarin形成反向PushModalAsync的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 04:48