XamlHostingKit is a System XAML (aka UWP XAML aka Windows XAML) hosting library for Desktop applications with smooth resizing, WebView support, backwards compatibility down to Windows 8.1, and more!
SmoothResize.mp4
The video seen in images above is also playing inside a WebView.
Note
- WebView2 is also supported.
- WebView uses Immersive Internet Explorer (Trident) when running on Windows 8.1 instead of Edge Legacy.
- Touchpad Awareness support (on all supported builds, including Windows 8.1) [Enabled By Default ->
XamlConfig.EnableTouchpadAwareness] ms-appx-web:///protocol support [Disabled By Default ->XamlConfig.EnableMsAppxWebProtocolSupport]- Arbitrary paths support for the
ms-appx-web:///protocol [Disabled By Default ->XamlConfig.EnableArbitraryPathsInMsAppxWeb] - Removal of the GDI redirection layer, which allows performant/efficient window transparency [Enabled By Default ->
XamlConfig.DisableRedirectionLayer]
You can find a simple XamlHostingKit C# sample here.
We will be adding more samples in the future.
- Requires Update for Universal C Runtime on Windows 8.1 and Windows RT 8.1.
Warning
The Windows.UI.Composition API is currently not usable on Build 14393 (Windows 10 Anniversary Update: 1607) and older unless the process is running under AppContainer, we are working on a solution.