【发布时间】:2014-05-08 14:29:57
【问题描述】:
我开始使用 windows phone 8.1 SDK 但有一些奇怪的事情我不明白,其中一个复杂的事情是为什么有不同的框架 Silverlight 和默认的 xaml,它们之间有什么区别以及我什么时候使用这个还是这个?
【问题讨论】:
标签: c# silverlight windows-phone-8 windows-phone windows-phone-8.1
我开始使用 windows phone 8.1 SDK 但有一些奇怪的事情我不明白,其中一个复杂的事情是为什么有不同的框架 Silverlight 和默认的 xaml,它们之间有什么区别以及我什么时候使用这个还是这个?
【问题讨论】:
标签: c# silverlight windows-phone-8 windows-phone windows-phone-8.1
一个巨大的区别当然是商店应用程序支持Universal Apps,您可以在其中轻松共享几乎所有跨 WP8.1 和 Windows 8.1(包括 XAML)的代码。
但值得注意的是,某些应用可能需要一些仅适用于 WP8.1 Silverlight 应用的功能,例如:
此处列出的其他一些内容以及从 WP8 到 WP8.1 Silverlight 和商店应用程序的功能映射:http://msdn.microsoft.com/en-us/library/windowsphone/develop/dn642486(v=vs.105).aspx
如果您正在启动一个新应用并且不需要任何这些功能,那么商店应用可能是更好的选择。
【讨论】:
如果我正确理解你的问题,让我从 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 中,Microsoft 提出了一种方法,您可以在其中构建应用程序 电话以及桌面和标签同时进行。通用应用程序的独特概念。
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 则不能。还有许多其他框架差异,但这是一个巨大的差异。
【讨论】: