【问题标题】:In windows phone 8.1 what is the differance between Windows phone project and silverlight project?在 windows phone 8.1 中,windows phone 项目和 silverlight 项目有什么区别?
【发布时间】:2014-05-08 14:29:57
【问题描述】:

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

【问题讨论】:

    标签: c# silverlight windows-phone-8 windows-phone windows-phone-8.1


    【解决方案1】:

    一个巨大的区别当然是商店应用程序支持Universal Apps,您可以在其中轻松共享几乎所有跨 WP8.1 和 Windows 8.1(包括 XAML)的代码。

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

    • VoIP 支持
    • 充当锁屏背景提供者
    • 充当镜头应用
    • 让应用使用搜索附加功能扩展搜索结果
    • 提供铃声

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

    如果您正在启动一个新应用并且不需要任何这些功能,那么商店应用可能是更好的选择。

    【讨论】:

    • 谢谢,但通用应用程序在哪里可以支持所有这些功能,而且我认为 silverlight 和通用应用程序和 xaml 应用程序之间存在差异
    • 只有 2 种类型,WP8.1 Silverlight 应用程序和 WP8.1 商店应用程序(又名 XAML 应用程序)。差异是列出的和链接的 MSDN 页面上的差异。通用应用程序是商店应用程序的名称,它也是为 Windows 8.1 开发的,使用商店应用程序的共享代码功能。选择在Visual Studio中创建Universal App时,它只需使用Windows 8.1和WP8.1商店应用程序项目创建一个项目,该项目共享一些代码。如果您只从 WP8.1 或 Windows 8.1 应用程序项目开始,您只需添加其他项目类型即可轻松将其变成通用应用程序。
    【解决方案2】:

    如果我正确理解你的问题,让我从 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

    【讨论】:

      【解决方案3】:

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

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

      【讨论】:

      • 您的意思是 Silverlight 是为需要将其应用程序从 wp 8 升级到 8.1 或使用 wp 8 的相同功能(如警报和提醒)的人而设计的,这是真的
      • 人们仍在编写 WP8 应用程序。自从 WP8.1 SDK 下降以来,我已经发布了一些。 WP8.1 应用程序要到仲夏才能向公众开放
      猜你喜欢
      • 1970-01-01
      • 2014-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-03
      相关资源
      最近更新 更多