【问题标题】:WPF and UWP , compatibility for earlier windowsWPF 和 UWP ,与早期窗口的兼容性
【发布时间】:2021-04-29 23:18:42
【问题描述】:

我正在使用 WPF 开发一个应用程序,用于 Windows 7x86 到最新的 Windows 10 版本。 我一直在尝试找到一种在我的应用程序中使用 UWP API 的方法,请记住我正在 Windows 10 中构建一个应用程序,以便在所有版本的 Windows 7、8 和 10 中使用! 已经看过 [this app identity][1] 和 [these runtime APIs][2] 。 专门找这样的[人物图控][3] [3]:https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/person-picture [1]:https://docs.microsoft.com/en-us/windows/uwp/publish/view-app-identity-details [2]:https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/desktop-to-uwp-supported-api#apis-supported-in-both-converted-apps-and-桌面应用程序

也是一种使用流利的xaml主题编辑器或类似的方法!

【问题讨论】:

    标签: wpf xaml uwp windows-runtime


    【解决方案1】:

    您将无法使用 UWP API 并保持与 Windows 7 或(我 99% 确定)甚至 Windows 8 的兼容。是的,Microsoft 已经引入了各种方法来使用 WPF 中的 UWP API 和控件,并且即使是普通的旧 Win32 应用程序,也比其他应用程序更 hack-ish,但生成的应用程序仍需要 Windows 10 才能运行。

    如果您需要与 Windows 7 保持兼容,则需要使用普通的 WPF。对不起!从好的方面来说,我还没有在 UWP 中找到任何不能在 WPF 中令人满意地复制的开创性内容。

    【讨论】:

      猜你喜欢
      • 2011-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-30
      • 2017-03-31
      • 2019-08-23
      • 2023-03-17
      • 1970-01-01
      相关资源
      最近更新 更多