【发布时间】:2019-09-23 17:44:33
【问题描述】:
我想知道下面链接中讨论的选项是否已经可以使用 Prism 进行。 PRISM Xamarin.Forms INavigationService understanding
使用 MasterDetail 的项目。
在没有 Prism 的 XF 中,使用 PushAsync,打开一个页面,而不用替换 MainPage,带有 NavigationBar 和后退按钮。
- App.css
MainPage = new NavigationPage(new MyMasterPage());
- 从 MyMasterPageViewModel.cs 调用 SecondPage
await _navigation.PushAsync(new SecondPage());
SecondPage 页面以模态方式打开,并带有 NavigationBar 和后退按钮。 我无法使用 Prism 重现同样的行为。
谢谢
【问题讨论】:
标签: xamarin.forms prism