[UWP]在PivotItem中使用Frame控件

[UWP]Using Frame control in PivotItem

您不知道 Pivot 中的任何 uwp/winrt 导航控件吗?我有 4 个枢轴项的枢轴控件。当我选择其中之一时,我需要在这个数据透视项中导航。因此枢轴控件保持在顶部,但在枢轴项中我可以导航。在PivotItem中使用Frame控件好不好?

如果您需要在 PivotItem 范围内导航,那么您的方向是正确的。 您可以使用 Frame in PivotItem. Frame displays Page 个实例,支持导航到新页面,并维护导航历史以支持向前和向后导航。

参考Frame class

You use the Frame control to support navigation to Page instances. You create as many different page types as needed to present the content in your app, and then navigate to those pages by calling the Navigate method and passing in the type of the page to navigate to.