积极答复者
根是SwapChainBackgroundPanel 这样的页面如何naviage 到其他页面呢

问题
答案
-
Hi,
你可以自己先创建一个Frame,然后设置Window.Current.Content,之后通过Navigate导航到其他页面。
Frame的文档:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.frame.aspx
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Aaron XueModerator 2012年11月28日 8:29
- 已标记为答案 Aaron XueModerator 2012年12月7日 7:55
-
的确是这样,只有在Frame才有记录导航数据以及navigate方法,因此如果你想使用的话可能只能够自己去记录导航状态了。
我的意思是,如果要显示SwapChainBackgroundPanel的话,那么直接设置Window.Current.Content之后通过这个页面导航到Page的话,需要你自己建立一个Frame之后在这个Frame中调用navigate方法到Page页面,或者你也可以试试直接设置Page到Content,但因为这种方法是没有办法记录导航数据的,因此可能需要你自己建立一个类来进行记录。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Aaron XueModerator 2012年12月7日 7:55
全部回复
-
Hi,
你可以自己先创建一个Frame,然后设置Window.Current.Content,之后通过Navigate导航到其他页面。
Frame的文档:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.frame.aspx
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Aaron XueModerator 2012年11月28日 8:29
- 已标记为答案 Aaron XueModerator 2012年12月7日 7:55
-
的确是这样,只有在Frame才有记录导航数据以及navigate方法,因此如果你想使用的话可能只能够自己去记录导航状态了。
我的意思是,如果要显示SwapChainBackgroundPanel的话,那么直接设置Window.Current.Content之后通过这个页面导航到Page的话,需要你自己建立一个Frame之后在这个Frame中调用navigate方法到Page页面,或者你也可以试试直接设置Page到Content,但因为这种方法是没有办法记录导航数据的,因此可能需要你自己建立一个类来进行记录。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Aaron XueModerator 2012年12月7日 7:55