在windows phone 8.1中,windows phone项目和silverlight项目有什么区别?

本文关键字:windows phone 项目有 silverlight 什么 区别 项目 | 更新日期: 2023-09-27 18:02:17

我开始使用windows phone 8.1 SDK,但有一些奇怪的事情我不明白,其中一个复杂的事情为什么有不同的框架Silverlight和默认的xaml,还有它们之间的区别是什么,当我使用这个或这个?

在windows phone 8.1中,windows phone项目和silverlight项目有什么区别?

一个巨大的区别当然是商店应用程序支持通用应用程序,你可以很容易地在WP8.1和Windows 8.1之间共享几乎所有的代码(包括XAML)。

但值得注意的是,有些应用程序可能需要一些功能,而这些功能仅适用于WP8.1 Silverlight应用程序,例如:

    <
  • VoIP支持/gh>
  • 作为锁屏背景提供者
  • 作为Lens应用
  • 让应用程序使用搜索附加项扩展搜索结果
  • 提供铃声

和其他一些在这里列出的功能映射从WP8到WP8.1 Silverlight和商店应用程序:http://msdn.microsoft.com/en-us/library/windowsphone/develop/dn642486(v=vs.105).aspx

如果你正在开发一款新应用,并且不需要这些功能,那么Store应用可能是更好的选择。

如果我理解对了你的问题,让我从MSDN上放一些句子…

    why there are different frameworks Silverlight and the default xaml, 
also what is the difference between them and when i use this or this ?

在Visual Studio 2013中,微软提出了一种方法,您可以在其中构建应用程序手机以及桌面和标签同时。一个独特的通用应用概念。

    Build an app for Windows 8.1 and Windows Phone 8.1 at the same time, 
and share code, user controls, styles, strings and other assets between them

所以如果你打算同时针对两个平台开发应用,那么通用应用的概念是很好的。

但是如果你的目标只是Windows Phone 8.1的新功能,那么你应该从Silverlight "Blank App (Windows Phone Silverlight)"开始

MSDN中已经明确提到了

    The names of some templates have (Windows Phone Silverlight) appended 
to the end. Consider using these templates if you've previously developed 
for Windows Phone 8 and just want to access some of the new features available 
to Windows Phone apps without having to significantly modify your existing 
code. You can use these templates to create apps only for Windows Phone 8.1

详细信息MSDN Link

Windows Phone Silverlight是Windows Phone 8的部署显然WP 8.1是WP 8.1的部署

主要的区别是,WP 8.1可以使用跨平台dll,而WP 8不能。还有许多其他的框架差异,但这是一个巨大的差异。