我创建了这个运行良好的菜单,但在某些打开的页面上不使用菜单,它被替换为后退按钮。无论如何要确保菜单在所有页面上?主页.xaml<MasterDetailPage.Detail> <NavigationPage> <x:Arguments> <pages:HomePage /> </x:Arguments> </NavigationPage> </MasterDetailPage.Detail>主页.xaml.cs var masterDetailPage = Application.Current.MainPage as MasterDetailPage; masterDetailPage.Detail = new NavigationPage((new SearchPage("A")));
1 回答
白猪掌柜的
TA贡献1893条经验 获得超10个赞
用替换细节部分替换 PushAsync
Navigation.PushAsync(new SearchPage("a"));
var masterDetailPage = Application.Current.MainPage as MasterDetailPage;
masterDetailPage.Detail = new NavigationPage((new SearchPage("a")));
- 1 回答
- 0 关注
- 77 浏览
添加回答
举报
0/150
提交
取消