【问题标题】:Silverlight vs W8/W8.1/WP8/WP8.1Silverlight 与 W8/W8.1/WP8/WP8.1
【发布时间】:2014-06-20 15:47:24
【问题描述】:

我知道您可以使用 c# 和 XAML 开发 W8 应用程序。 wp8上也一样吗?

Silverlight 与这一切有何关联,以及 WP8.1/WP8 与这一切有何关联。

如果您需要更多细节,请告诉我。

【问题讨论】:

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


    【解决方案1】:

    您可以使用 C# 和 XAML 在 Windows Phone 上开发应用程序。

    Windows 8 使用称为 WinRT 的运行时。 Windows Phone 传统上使用称为 Silverlight 的运行时。两者都是基于 C# 和 XAML,但它们有不同的控件和不同的类。

    从 Windows Phone 8.1 开始,您可以使用 WinRT 制作手机应用程序。因此,您现在可以使用相同的运行时为 Windows 8 和 Windows Phone 8.1 编写应用程序(因此共享大部分代码):它们被称为“通用应用程序”。

    至于你应该使用哪一个:

    • 如果您想为 Windows 8 和 Windows Phone 创建一个应用程序,那么这很容易:创建一个通用应用程序
    • 如果您想制作一个只能在 Windows Phone 上运行的应用程序,那么我个人建议使用 WinRT,因为这是“面向未来”的选择。但是,WinRT 运行时还不支持某些 Windows Phone API。如果您需要其中一种 API,那么您别无选择,只能使用 Silverlight。

    http://blogs.msdn.com/b/eob/archive/2014/04/16/starting-with-universal-apps-on-visual-studio-2013.aspx

    在这个版本中,我们有 90% 的 API 融合,但仍有一小部分尚未融合,它们是仅在 Silverlight 中可用的电话功能,例如:

    • 镜头支持
    • VOIP 支持
    • 相机拍摄任务
    • 剪贴板 API
    • 锁屏壁纸API

    【讨论】:

      【解决方案2】:

      1 Ans:您可以使用C# & XAML 开发Windows 8, Windows 8.1, Windows Phone 7, Windows Phone 8 & Windows Phone 8.1 应用程序。

      2:回答:Windows Phone 7、Windows Phone 8 和 Windows Phone 8.1(针对 Silverlight)使用 Silverlight API's。以及 Windows Phone 8 和 Windows Phone 8.1 与 Silverlight 的关系,它们使用可用于移动应用程序框架的 SIlverlight API。

      Windows 8 和 Windows 8.1 都以 WinRT API's 为目标。目前 Windows Phone 8.1 还支持 WinRT API。因此,如果您想创建 Windows 8.1 和 Windows Phone 8.1 应用程序,您可以通过创建一个针对这两个平台的 Universal application 来完成(它们的收敛率为 90%)。

      If you want to create Windows 8 & Windows Phone 8 applications, you will require Visual Studio 2012 & Windows 8 OS.
      If you want to create Windows 8.1, Windows Phone 8 & Windows Phone 8.1 applications , you require Visual Studio 2013 & Windows 8.1 OS.
      

      Link 向您简要介绍了 Windows 8 和 Windows Phone 8 应用程序开发。

      希望这会有所帮助。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-10-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-05-26
        相关资源
        最近更新 更多