简体   繁体   English

如何使用Prism从内容页面导航到xamarin.forms中选项卡式页面的第二个选项卡

[英]how to navigate from a content page to the second tab of Tabbed page in xamarin.forms using Prism

once user click on the search bar he/she directs to a model content page and after searching and selecting the search result. 一旦用户单击搜索栏,他/她将直接进入模型内容页面,并在搜索并选择搜索结果之后。 I want user to redirect to the second tab of a tabbed page. 我希望用户重定向到选项卡式页面的第二个选项卡。 is this possible using prism ? 使用棱镜可以吗?

Navigation for TabbedPage s has been improved with Prism 7. Please see the blog post here Prism 7改进了TabbedPage的导航。请在此处查看博客文章

NavigateAsync(“TabbedPage?selectedTab=MiddleTab/ViewA/ViewB”)

This will navigate to the TabbedPage, selected the MiddleTab and continue navigating ViewA and ViewB onto the navigation stack. 这将导航到TabbedPage,选择MiddleTab然后继续将ViewAViewB导航到导航堆栈。

The blog post ist not 100% clear, but don't take MiddleTab literally. 博客文章还不是100%清楚,但不要从字面上MiddleTab Most likely this will be the class name of a view added to the TabbedPage . 这很可能是添加到TabbedPage中的视图的类名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM