Skip to content

Repository files navigation

XamlHostingKit

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!

Installation

XamlHostingKit

Features

Broad Windows Version Support

Windows 11

Windows 11

Windows 10 RTM (Build 10240)

Windows 10 RTM

Windows 8.1 (Build 9600)

Windows 8.1

Smooth Resizing Support (Build 15063+) [Enabled By Default -> XamlConfig.EnableSmoothResize]

SmoothResize.mp4

WebView (Edge Legacy) Support [Enabled By Default -> XamlConfig.EnableWebView]

WebView (Edge Legacy)

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.

Other Miscellaneous Features

  • 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]

Samples

You can find a simple XamlHostingKit C# sample here.

We will be adding more samples in the future.

Notes

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.

About

System XAML hosting library for Desktop apps with smooth resizing, backwards compatibility down to Windows 8.1, and more!

Topics

Resources

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages