UWPXamlHost控件:桌面应用中使用UWP控件的资讯与状态问询
Answer to Your UWPXamlHost Questions
Hey there! Let me share what I know about the UWPXamlHost control from that 2018 Build demo you mentioned:
- Preview Release Status: This control was later rolled out as a preview under the name Windows XAML Host starting around the Windows 10 October 2018 Update (version 1809). It was initially made available through early builds of the Windows Community Toolkit, letting developers test embedding UWP controls in WPF and WinForms apps right away.
- General Availability Timeline: By late 2018, the control moved out of preview and became officially supported. Today, you can easily access it via NuGet packages:
Microsoft.Toolkit.Wpf.UI.XamlHostfor WPF projects, andMicrosoft.Toolkit.Forms.UI.XamlHostfor WinForms projects. - Inclusion in UWP Community Toolkit: Absolutely! The Windows XAML Host (formerly
UWPXamlHost) is a core component of the Windows Community Toolkit. It’s maintained alongside other useful utilities and controls for desktop and UWP development, with full documentation and sample code available to help you get started.
A quick extra note: The control now supports most popular UWP controls (like MapControl, InkCanvas, and MediaPlayerElement) and has been updated over time to improve compatibility and performance. If you’re looking to implement this in your app, grabbing the relevant NuGet package is the first step.
内容的提问来源于stack exchange,提问作者Michael Vach
相关产品推荐
相关产品推荐

