Xamarin Forms Reverse PushModalAsync

本小妞迷上赌 提交于 2019-12-25 03:44:37

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/34160286/xamarin-forms-reverse-pushmodalasync

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!