简体   繁体   English

Windows Phone 7相当于一种新形式

[英]windows phone 7 equivalent of a new form

In a windows application, you can create a new form and you can call that form by instantiating it inside the current form. 在Windows应用程序中,您可以创建一个新表单,并且可以通过在当前表单中实例化该表单来调用该表单。

in windows phone app using XNA how can I do this? 在使用XNA的Windows Phone应用中如何执行此操作? I want to create a menu page. 我想创建一个菜单页面。 then when a button from the menu page is clicked . 然后单击菜单页面上的按钮。 it goes to another form . 它采用另一种形式。

I would recommend you that you should use an SLXNA project for your game and then you can handle the navigation between pages easily and you can use SL components and controls too. 我建议您在游戏中使用SLXNA项目,然后可以轻松处理页面之间的导航,也可以使用SL组件和控件。

SLXNA sample and tutorial SLXNA示例和教程

If you are looking to solve this only by XNA then i suggest you to look at the MSDN samples. 如果您只想通过XNA解决此问题,那么我建议您看一下MSDN示例。 They have MenuScreen integration and i think you are looking for this. 他们具有MenuScreen集成,我想您正在寻找这个。

MSDN Code Samples and Tutorials MSDN代码示例和教程

Catapult Wars Tutorial Game 弹射器大战教程游戏

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

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