如何在Windows 8 Tablets中运行Windows Phone 8应用程序 [英] how to run a Windows phone 8 application into Windows 8 Tablets

查看:82
本文介绍了如何在Windows 8 Tablets中运行Windows Phone 8应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Windows Phone SDK开发了Windows Phone 8应用程序,我也希望该应用程序也可以在Windows Phone 8平板电脑上运行.应用程序是否可以运行而无需任何修改?如果不是必须进行什么更改?

I have developed a windows phone 8 application using windows phone sdk and i want this application to run on windows phone 8 tablet as well. Does the application run without any modification ? If not what changes has to be done?

推荐答案

我已经使用Windows Phone SDK开发了Windows Phone 8应用程序,并且希望该应用程序在Windows上运行手机8平板电脑也是如此.应用程序是否可以运行而无需任何修改?如果不是,必须做些什么改变?
I have developed a windows phone 8 application using windows phone sdk and i want this application to run on windows phone 8 tablet as well. Does the application run without any modification ? If not what changes has to be done?

如果它是XNA应用程序:

If it's a XNA app:

不,它不起作用.相信它永远不会.

No, it doesn't work. AFAIK it never will.

如果它是DirectX应用程序:

If it's a DirectX app:

我不知道.

如果它是XAML应用:

If it's a XAML app:

不,它不起作用.但是您可以实现它:

No, it doesn't work. But you can make it happen:

-您需要重新设计用户界面.枢轴和全景等主要控件不存在.大多数(但不是全部)次要控件类型是相同的.您需要支持任意分辨率和宽高比.滚动应水平进行.

- You need to redesign the user interface. Major Controls like Pivot and Panorama don't exist. Most (but not all) minor Controls types are the same. You'll need to support arbitrary resolutions and aspect ratios. Scrolling should be done horizontally.

-页面生命周期已更改,因此您可能需要重新处理页面状态.

- The page lifecycle changed, so you might need to rework page states.

-大多数名称空间已更改,因此您需要触摸每个代码文件.这仅适用于WP7至W8.从WP8到W8,这是不正确的.

- Most namespaces changed, so you'll need to touch every code file. This is only true from WP7 to W8. It's not true from WP8 to W8.

-您应该以三种尺寸提供每个图像.此外,还有全新的应用程序图标大小.

- You should provide every image in three sizes. Also there are completely new app icon sizes.

-资源文件从.resx更改为.resw.

- Resource files changed from .resx to .resw.

-一些班级和班级成员已更改.因此,根据您的应用程序执行的操作,您可能不需要执行任何操作或重写整个逻辑.

- Some classes and class members have changed. So depending on what you app does, you might need to do nothing or to rewrite the entire logic.

-应用设置和应用内搜索必须遵循全局规则.

- App settings and in-app-search must follow global rules.

我可能忘记了一些要点.简而言之:期望重写您的整个应用程序.不要期望共享大量代码.

I probably forgot some major points. In short: Expect to rewrite your entire app. Do not expect to share major amounts of code.


这篇关于如何在Windows 8 Tablets中运行Windows Phone 8应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆