具有多个页面的Direct2D和XAML应用程序 [英] Direct2D and XAML app with multiple pages
问题描述
我正在使用VS2012 Express中的Win8 C ++ Direct2D XAML模板。我在SwapChainBackgroundPanel中放了一个按钮控件,在button_click上,页面导航总是返回错误。
1)SwapChainBackgroundPanel是根控件而不支持页面导航?
2)我检查了其他页面导航示例,他们根本不使用SwapChainBackgroundPanel。
请帮助建议多页Direct2D XAML应用程序的解决方法,如果可能,提供或指导我进入多页Direct2D XAML示例/教程,谢谢。
SwapChainBackgroundPanel不支持Navigate。您应该将其设置为内容。
有关详细步骤,请检查
http://social.msdn.microsoft.com/Forums/pl/wingameswithdirectx/thread/b5973bfc-88b4-4018-b02f-f442bf74b967
和
http:// msdn.microsoft.com/en-US/library/windows/apps/hh825871
最好的问候,
Jesse
Hi,
I am using the Win8 C++ Direct2D XAML template in VS2012 Express. I put a button control inside SwapChainBackgroundPanel, on the button_click , page navigation always return an error.
1) Is SwapChainBackgroundPanel the root control and not support page navigation ?
2) I have checked other page navigation samples, they don't use SwapChainBackgroundPanel at all.
Please help to suggest a workaround for a multi-page Direct2D XAML application, if possbile , provide or direct me to a multi-page Direct2D XAML sample/tutorial, thanks.
Hi,
SwapChainBackgroundPanel does not support Navigate. You should set it as content.
For detail steps, please check
http://social.msdn.microsoft.com/Forums/pl/wingameswithdirectx/thread/b5973bfc-88b4-4018-b02f-f442bf74b967And
http://msdn.microsoft.com/en-US/library/windows/apps/hh825871Best regards,
Jesse
这篇关于具有多个页面的Direct2D和XAML应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!