Mile.Xaml 2.5.1616

dotnet add package Mile.Xaml --version 2.5.1616
                    
NuGet\Install-Package Mile.Xaml -Version 2.5.1616
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mile.Xaml" Version="2.5.1616" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mile.Xaml" Version="2.5.1616" />
                    
Directory.Packages.props
<PackageReference Include="Mile.Xaml" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mile.Xaml --version 2.5.1616
                    
#r "nuget: Mile.Xaml, 2.5.1616"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Mile.Xaml@2.5.1616
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mile.Xaml&version=2.5.1616
                    
Install as a Cake Addin
#tool nuget:?package=Mile.Xaml&version=2.5.1616
                    
Install as a Cake Tool

Mile.Xaml

NuGet Package

Screenshot for XAML controls demo

Screenshot for XAML designer support

Mile.Xaml is the lightweight XAML Islands toolchain with the Windows 11 controls styles. It was originally created for improving the development and deployment experience in modernization of NanaZip. For validating the usability of this, NanaBox and NanaGet were also created.

Features

  • Provide XAML Compiler, XAML Designer and XAML Hot Reload support.
  • Provide Windows 11 XAML controls styles for Windows Runtime XAML controls.
  • Provide C/C++ projects, .NET Framework (Visual Studio 2022 Version 17.9.0 or later), and Modern .NET (.NET 8.0 or later) projects support.
  • Integrate all features from Microsoft.Toolkit.Win32.UI.XamlApplication.
  • Provide support for responding to Windows theme changes from dark to light or vice versa at run time.
  • Integrate several XAML Islands workarounds.
  • Provide Mile.Xaml.ContentWindow window class for simplifying the development.
  • Provide immersive Mica effect support Mile.Xaml.ContentWindow window class.
  • Provide Win32 context menu dark mode support.
  • Use VC-LTL 5.x toolchain to make the binary size smaller.
  • Provide NuGet package.

Usage

You only need to search and add Mile.Xaml package in your NuGet client.

There are some samples that demonstrate using XAML Islands with Mile.Xaml. We hope it can help you develop applications with Mile.Xaml and enjoy the beauty of XAML Islands.

If you don't want to deploy Windows 11 XAML controls styles for Windows Runtime XAML controls (Mile.Xaml.Styles.SunValley.xbf) to your project's output folder, please set <MileXamlNoSunValleyXamlStyle>true</MileXamlNoSunValleyXamlStyle> in your project configuration file.

If you don't want to deploy the native backend redistribute for .NET (Mile.Xaml.dll) to your .NET project's output folder, please set <MileXamlManagedNoNativeBackend>true</MileXamlManagedNoNativeBackend> in your project configuration file.

Notes About Modern .NET Support

Modern .NET support is based on the official UWP Support in .NET 9 SDK, which requires the following components:

  • .NET 9.0 SDK
  • Visual Studio 2022 v17.12
  • Windows 11 SDK 26100.2454

If you see similar errors during build:

error MSB4064: The "UsingCsWinRT" parameter is not supported by the "CompileXaml" task loaded from assembly: Microsoft.Windows.UI.Xaml.Build.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 from the path: C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Build.Tasks.dll. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.

You may need to upgrade your Windows SDK, which can be downloaded from https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/.

System Requirements

  • Supported OS: Windows 10 Version 2004 (Build 19041) or later
  • Supported Platforms: x86, x86-64(AMD64) and ARM64

Documents

Credits

Note: This list sort in alphabetical order.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows10.0.19041 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Mile.Xaml:

Repository Stars
Guerra24/LRReader
A feature-complete reader and client for LANraragi
Version Downloads Last Updated
2.5.1616 2,444 2/14/2026
2.5.1250 2,104 2/12/2025
2.3.1064 1,159 8/11/2024
2.2.1017 249 6/25/2024
2.2.944 511 4/13/2024
2.2.890 296 2/18/2024
2.1.661 1,062 7/5/2023
2.1.651-preview 334 6/25/2023
2.0.617 394 5/22/2023
2.0.616 304 5/21/2023
2.0.611 312 5/15/2023
2.0.591-preview 372 4/25/2023
2.0.573-preview 445 4/8/2023
1.2.495 759 1/19/2023
1.1.434 1,068 11/19/2022
1.0.361 756 9/7/2022
Loading failed