XamlHostingKit 0.1.0
dotnet add package XamlHostingKit --version 0.1.0
NuGet\Install-Package XamlHostingKit -Version 0.1.0
<PackageReference Include="XamlHostingKit" Version="0.1.0" />
<PackageVersion Include="XamlHostingKit" Version="0.1.0" />
<PackageReference Include="XamlHostingKit" />
paket add XamlHostingKit --version 0.1.0
#r "nuget: XamlHostingKit, 0.1.0"
#:package XamlHostingKit@0.1.0
#addin nuget:?package=XamlHostingKit&version=0.1.0
#tool nuget:?package=XamlHostingKit&version=0.1.0
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
A NuGet package is in the works.
Features
Broad Windows Version Support
Windows 11
<img width="1920" height="1080" alt="Windows 11" src="https://github.com/user-attachments/assets/333bdf8d-6825-4ce4-94b5-1ef00f9580bd" />
Windows 10 RTM (Build 10240)
<img width="1727" height="1014" alt="Windows 10 RTM" src="https://github.com/user-attachments/assets/9cd3b161-4323-47f5-aad9-ad0e022a6506" />
Windows 8.1 (Build 9600)
<img width="1660" height="1044" alt="Windows 8.1" src="https://github.com/user-attachments/assets/16e77ded-fa61-4dd2-9ce9-546a12a5b6d2" />
Smooth Resizing Support (Build 15063+) [Enabled By Default → XamlConfig.EnableSmoothResize]
https://github.com/user-attachments/assets/cb654547-d3b7-442a-848c-250bab53d760
WebView (Edge Legacy) Support [Enabled By Default → XamlConfig.EnableWebView]
<img width="1424" height="776" alt="WebView (Edge Legacy)" src="https://github.com/user-attachments/assets/f3acfd8b-f15a-4cec-b192-31a8dc1852de" />
The video seen in images above is also playing inside a WebView.
- 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
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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net9.0-windows10.0.26100 is compatible. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| native | native is compatible. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Universal Windows Platform | uap was computed. uap10.0 is compatible. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Windows.SDK.Contracts (>= 10.0.26100.4654)
-
native 0.0
- No dependencies.
-
net9.0-windows10.0.26100
- No dependencies.
-
UAP 10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 147 | 8/18/2026 |
Initial release.