在 WPF 控件中 - 显示 UWP 应用程序
In WPF control - display a UWP app
https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-extend
这解释了在与 WPF 应用不同的 window 中显示 UWP 应用的过程。是否可以将它们显示在同一个 window 中?例如。在 WPF 控件内显示 UWP 应用程序。或者甚至更好:在 WPF 控件内显示 UWP 控件。
我向我们的团队咨询了你的问题,正如 Steven Wick 提到的:
It is currently not possible to display WPF and UWP UI/controls within the same window. A Desktop Bridge app can contain both WPF and UWP components, but their UI will need to reside in separate windows.
WPF 和 UWP 之间的 UI 似乎不能混用,它们可能采用不同的技术。
情况发生了变化,Windows 现在支持在 WPF 或 Windows Forms 等 Win32 应用程序中托管 UWP 控件。
您可以在 XAML 岛上找到文档,在 https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/using-the-xaml-hosting-api 上找到托管过程。本文还引用了可帮助您入门的示例应用程序。
https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-extend
这解释了在与 WPF 应用不同的 window 中显示 UWP 应用的过程。是否可以将它们显示在同一个 window 中?例如。在 WPF 控件内显示 UWP 应用程序。或者甚至更好:在 WPF 控件内显示 UWP 控件。
我向我们的团队咨询了你的问题,正如 Steven Wick 提到的:
It is currently not possible to display WPF and UWP UI/controls within the same window. A Desktop Bridge app can contain both WPF and UWP components, but their UI will need to reside in separate windows.
WPF 和 UWP 之间的 UI 似乎不能混用,它们可能采用不同的技术。
情况发生了变化,Windows 现在支持在 WPF 或 Windows Forms 等 Win32 应用程序中托管 UWP 控件。
您可以在 XAML 岛上找到文档,在 https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/using-the-xaml-hosting-api 上找到托管过程。本文还引用了可帮助您入门的示例应用程序。