将Windows Phone 7应用程序移植到Windows 8平板电脑上的Metro上有多容易? [英] How easy is it to port a Windows Phone 7 application to Metro on a Windows 8 tablet?
问题描述
我知道两个平台上的Metro都具有相同的外观",并且WinRt像Windows Phone 7上的Silverlight一样使用XAML和C#(或VB.NET).
I know that Metro on both platforms shares a common "look and feel" and that WinRt makes use of XAMLand C# (or VB.NET) like Silverlight does on Windows Phone 7.
但是我也知道WinRT不是Silverlight.
However I also know that WinRT is not Silverlight.
因此,创建可在Windows 8平板电脑和Windows 7(或7.5)手机上运行的应用程序的过程是什么?
Therefore what is the process of creating an app that will work on both a Windows 8 tablet and a Windows 7 (or 7.5) Phone?
WinRt与Silverlight有多近?
How close is WinRt to Silverlight?
推荐答案
尽管Microsoft中的某些人声称只需要更改几行代码即可.
Despite certain people in Microsoft claiming it will only require changing a couple of lines of code...
移植应用程序有多困难的唯一可能答案是 IT DEPENDS!
The only possible answer to how difficult it will be to port an app is IT DEPENDS!
- 电话应用程序有什么作用?
- Win8还可以使用哪些功能?
- 如果无法在Win8上执行相同的操作,应该怎么做?
- 在Win8版本中还应该添加什么(如果有的话)?
- 与手机相比,Win8上的多余屏幕空间将如何处理?
- 您是否在一个控件或UI元素上使用了另一个控件或UI元素?
- 等,....
并行的是:
- 都使用XAML
- 两者都可以对代码使用相同的编程语言(可能是C#)
- Win8(WP7的设计语言)对Win8上的地铁风格"应用程序进行了设计
这将取决于应用程序.
您无法创建可同时在两者上运行的应用程序.至少您需要重新编译,因为这两个平台将需要针对.net框架的不同版本.
You can't create an app which will run on both. At the very least you'll need to recompile as the 2 platforms will require targetting different versions of the .net framework.
更新:
Microsoft已提供了一些早期的指南建造这样的港口.它包括一些名称空间和API映射.
Update:
Microsoft have provided some early stage guidance on making such a port. It includes some namespace and API mappings.
这篇关于将Windows Phone 7应用程序移植到Windows 8平板电脑上的Metro上有多容易?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!