UWPXamlHost control - UWP controls in desktop apps - Info and Status?

依然范特西╮ 提交于 2019-12-04 20:06:35

I expect it to be part of the Windows Community Toolkit, but I am not sure about the timeframe. As of May 2018 there has been no preview yet I am aware of, so I think we might have to wait for a while more. The only resource in the documentation is now this, which highlights the WebView control, which is now part of the toolkit as a hosted control.

A quick update on this: the Windows Community Toolkit has this functionality available in a PR now, which should go into an upcoming release (4.0?) of the toolkit.

  • Docs for Windows XAML Host: PR #2331
  • PR with WPF-wrapped UWP controls (and framework for creating your own): PR #2299

The control name is no longer UWPXamlHost. PR #2435 has already been merged which added a class called WindowsXamlHost, for both Windows Forms and WPF. The documentation is here: https://github.com/Microsoft/WindowsCommunityToolkit/blob/master/docs/controls/WindowsXAMLHost.md You can already get the pre-release NuGet of the Toolkit's 4.1 release to test it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!