Ailoha.Agent.WinUI 0.2.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ailoha.Agent.WinUI --version 0.2.3
                    
NuGet\Install-Package Ailoha.Agent.WinUI -Version 0.2.3
                    
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="Ailoha.Agent.WinUI" Version="0.2.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ailoha.Agent.WinUI" Version="0.2.3" />
                    
Directory.Packages.props
<PackageReference Include="Ailoha.Agent.WinUI" />
                    
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 Ailoha.Agent.WinUI --version 0.2.3
                    
#r "nuget: Ailoha.Agent.WinUI, 0.2.3"
                    
#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 Ailoha.Agent.WinUI@0.2.3
                    
#: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=Ailoha.Agent.WinUI&version=0.2.3
                    
Install as a Cake Addin
#tool nuget:?package=Ailoha.Agent.WinUI&version=0.2.3
                    
Install as a Cake Tool

Ailoha Agent for WinUI

Ailoha.Agent.WinUI embeds the Ailoha DevFlow Agent Protocol in native WinUI 3 applications. It walks the WinUI visual tree directly with VisualTreeHelper, maps WinUI controls to protocol ElementInfo nodes, and exposes inspection, action, screenshot, device, storage, WebView2, and unsupported-capability endpoints over the standard local HTTP agent port.

Installation

<PackageReference Include="Ailoha.Agent.WinUI" Version="0.1.*" />

Keep startup behind a debug/internal guard; the agent binds a local HTTP server inside the app process.

Debug startup

#if DEBUG
_agent = WinUiDevFlowAgent.Start(window, options =>
{
    options.Port = 9233;
    options.AppName = "My WinUI App";
});
#endif

For apps with route names, set options.RouteResolver so /api/v1/ui/actions/navigate can call application navigation code without needing a platform-specific protocol extension.

Configuration

  • Port defaults to 9233 and can be overridden with AILOHA_PORT.
  • EnableBrokerRegistration registers the app with the local broker on port 19323 so the CLI can discover it.
  • RouteResolver and BackHandler let apps connect protocol navigation actions to their own navigation model.
  • WindowsProvider can expose additional WinUI windows for multi-window apps.

Validation

From the repository root on Windows:

dotnet build winui\agent\Ailoha.Agent.WinUI\Ailoha.Agent.WinUI.csproj
dotnet test winui\tests\WinUI.IntegrationTests.csproj

Notes

  • Stable element IDs prefer AutomationProperties.AutomationId, then FrameworkElement.Name, then a generated visual-tree path.
  • Screenshots use RenderTargetBitmap; WebView2 uses CoreWebView2.CapturePreviewAsync.
  • Some Windows APIs require packaged identity. The agent reports unsupported behavior for secure storage and other identity-sensitive surfaces until those are implemented.
Product Compatible and additional computed target framework versions.
.NET net10.0-windows10.0.19041 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

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.4 91 5/18/2026
0.2.3 141 5/14/2026
0.2.2 86 5/14/2026
0.2.1 97 5/14/2026
0.2.0 87 5/13/2026
0.1.13 92 5/12/2026
0.1.12 94 5/12/2026
0.1.11 90 5/11/2026
0.1.10 88 5/11/2026
0.1.9 95 5/8/2026
0.1.8 96 5/8/2026
0.1.6 99 5/8/2026