【问题标题】:Is it possible to write an application that runs on Windows Mobile 6.5 as well as Windows Embedded 8.1/10 Handheld?是否可以编写在 Windows Mobile 6.5 和 Windows Embedded 8.1/10 Handheld 上运行的应用程序?
【发布时间】:2015-10-01 14:56:18
【问题描述】:

客户需要在带有条形码扫描仪的行业手持设备上运行的应用程序。

不幸的是,Windows 8.1 Embedded Handheld 设备很少见,Windows 10 Embedded 设备也不存在。目前可用的几乎所有设备都使用 Windows CE 6 或 Windows Mobile 6.5。

据我所知,Windows Mobile 6.5 的 (.NET) 应用程序完全基于 Compact Framework 和 WinForms,而 Windows 8.1 Embedded 软件(完全?)基于 WinRT 和 XAML。

正确吗?有没有办法编写一个(.NET)应用程序

  • 在当前 (Windows Mobile 6.5) 设备上运行
  • 会运行 Windows 8.1/10 Embedded 设备吗?

【问题讨论】:

    标签: c# windows-mobile windows-ce windows-10 windows-embedded


    【解决方案1】:

    你是对的,没有办法做到这一点。 UI 基于 6.5 的 winforms 和 8/10 的 XAML。 您唯一可以尝试做的就是尽量保持 UI 和业务逻辑清晰分离以简化迁移。 还要考虑到您在 6.5 上拥有的某些功能(例如:sql compact)已在 8/10 中删除,并且“替换”可能与代码不兼容并且可能缺少某些功能。 您可以在 8 月 10 日尝试构建和测试您的非 UI 代码,以便检查您没有使用可能影响迁移的功能。

    【讨论】:

    • 感谢有关 SQL Server Compact 的警告。
    【解决方案2】:

    如果您不必编写本机 .NET 代码,您应该可以使用 Rho Elements。可能还有其他也可以使用的跨平台解决方案。

    【讨论】:

      【解决方案3】:

      您可以在 Windows Mobile 6.5 上使用 Windows.Forms,在 Windows Phone 上使用 Xamarin。您需要为 Compact Framework 的 Form 代码和 Xamarin 支持的代码使用兼容层。

      但我建议使用 HTML5(在 Windows Mobile 上使用 ZetaKey 浏览器)。甚至 RhoElements 也是基于 HTML5,但带有专有扩展。

      【讨论】:

        【解决方案4】:

        是的,这是可能的。您将必须实现所有依赖于平台的 GUI 逻辑。并且可以使用 MVVM 模式共享代码。您可能还需要切换到在 SQLite 等两个平台上都可用的数据库。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2016-05-02
          • 1970-01-01
          • 2014-11-21
          • 2016-04-09
          • 2011-03-18
          • 1970-01-01
          • 2017-12-18
          • 1970-01-01
          相关资源
          最近更新 更多