BRK394 · Breakout

Building Windows apps with WinUI and agents​

  • Wednesday 18 November
  • 46 min
  • Catalogue level: (400) Expert
  • Our depth rating: 300
  • Worth watching: 2/3

Speakers: Jaylyn Barbee, Beth Pan, Amadeo Pellicce

Watch on Microsoft’s site from 05:44

Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.

What the session covers

The session positions WinUI as the native framework going forward and builds an enterprise WinUI app (Hangar) live using WinApp CLI driven by a Copilot agent with skills. Demos cover scaffolding with winapp new, agent-driven profiling with winapp perf and WinApp DevTools inline comments, grounding via find UI and find API, scripted UI testing with WinApp UI including sandbox mode, and packaging with a manifest visual editor, XAML IntelliSense in VS Code and signed MSIX output. Private benchmarks show agent accuracy on WinApp command questions rising from 37% without platform-aware tools to 90% with them. WinApp CLI and the skills plugin are stated to be available today; hot reload, a Visual Studio previewer, Reactor and Rust support are presented as experiments. A Replit partner demo and a WinUI platform update (open source including the XAML compiler, gamepad input, experimental TableView, chart and Ink Canvas controls) close the session.

Best for: Windows desktop developers and dev-tooling architects who want to see how coding agents are grounded with CLI tools and skills to build, test and package WinUI apps.

Session timeline by chapter

New material starts at 05:44. After the opening and the WinUI positioning with partner app examples, the WinApp CLI, its skills/plugins and the VS Code extension are introduced at 05:44.

Where to skip: Skip to 05:44. The core is the demo run from 10:43 to 30:45: agent profiling and DevTools at 10:43, find UI/API at 16:30, WinApp UI testing at 22:48 and packaging at 27:04. Then watch benchmarks at 30:45, availability and experiments at 32:56 and the platform update at 41:09. The Replit partner demo (35:29) and the opening and closing are optional.

Chapters (13)

  1. 00:09 Recap Depth 100 · Novelty 0/3

    Session opening, speaker introductions and agenda

    Two software engineers from the Windows Developer Platform team introduce themselves and the session on building Windows apps with WinUI and agents. The agenda covers four points: the commitment to WinUI as the framework going forward, building an enterprise-grade WinUI app end to end live, platform investments, and mixing human and agent-ready development workflows.

  2. 01:29 Recap Depth 100 · Novelty 1/3

    Why WinUI: platform positioning, first-party adoption and partner apps

    WinUI is presented as the platform path forward for new apps and for migrating line-of-business apps, citing modern input, Fluent design and GPU-accelerated rendering, with tooling described as agent-ready and grounded in Microsoft-supported tools, resources and skills. The speakers cite first-party adoption (widgets and the new Run experience moving to WinUI) and framework-wide tuning tied to the Windows quality commitment. Partner apps such as Apple Music, Apple TV, iCloud for Windows and Samsung apps are shown, followed by a partner showcase video.

  3. 05:44 Deep dive Depth 200 · Novelty 2/3

    The modern inner loop: WinApp CLI, skills/plugins, VS Code extension and Visual Studio

    WinApp CLI is introduced as a command-line tool to create, build, run, inspect, test, profile, package and sign Windows apps; because it is a CLI, an agent can drive everything it does. The repo ships skills and plugins that tell the agent how to use the CLI so it spends fewer cycles searching and hallucinating. A WinApp extension for Visual Studio Code adds a UI layer including manifest editing and XAML IntelliSense, and features trialled in the CLI and extension are said to eventually come back to Visual Studio, which remains the most complete IDE on the same project and toolchain.

  4. 07:07 Demo Depth 300 · Novelty 2/3

    Demo: scaffolding the Hangar WinUI app with winapp new and touring the app

    Starting from an empty projects folder, the presenter runs winapp new, picks the NavigationView template (other options include blank WinUI, unit test and Reactor templates) and names the app Hangar. Templates track the .NET new templates, and the scaffolded app has package identity built in so notifications and Start menu interactions work immediately. The finished Hangar app, an aircraft-maintenance tool described as 'GitHub for aircraft mechanics', is shown with GPU-accelerated charts, an aircraft detail view and inking sign-off, before a ticket about a slow Work Orders page sets up the next demo.

  5. 10:43 Demo Depth 400 · Novelty 2/3

    Demo: agent-driven profiling with winapp perf and inline feedback via WinApp DevTools

    In a Copilot session the agent loads the winapp-performance skill, runs winapp perf start to capture stack traces, memory and timing, then winapp perf analyze, and concludes that the ListView realizes more rows than fit on screen. The presenter verifies this manually with winapp run --devtools on, which provides a DevTools overlay with visual tree, layout adorners and light/dark switching, and leaves inline comments that persist in a .winapp folder in the project root. The agent then loads the WinUI DevTools skill, reads and resolves the comments, and the page loads almost instantly; for crashes, winapp run recommends rerunning with debug output and WinDBG-based crash analysis.

  6. 16:30 Demo Depth 400 · Novelty 2/3

    Demo: find UI picks TableView, find API fixes a wrong WPF-style property

    A new ticket asks for sorting, grouping, column resizing and inline editing; the agent loads the winapp-find-ui skill and the find UI command searches the WinUI Gallery, Community Toolkit gallery and Reactor gallery, returning TableView samples with real XAML and C# code-behind. After the agent applies TableView, the table supports grouping, sorting, inline editing and resizing. The presenter then manually adds FrozenColumnCount, a property remembered from an older framework, which fails the XAML build; the agent loads the find API skill, which scans Windows APIs and referenced NuGet packages, finds FrozenEdge on TableViewTemplateColumn and sets it to Leading, pinning the column.

  7. 22:48 Demo Depth 300 · Novelty 2/3

    Demo: agent-drivable UI testing with WinApp UI, evidence capture and sandbox runs

    WinApp UI exposes commands to inspect the app, list windows, check focus, click, scroll, take screenshots, record and simulate gestures, touch and pen, so an agent or script can drive UI tests without a separate UI testing framework. A prepared PowerShell script (verify-work-orders) uses these commands to check the frozen column, column resizing and editing; it produces an evidence folder with screenshots and a video recording. A sandbox option runs the tests isolated from the user's desktop, and integration with the MXC concept for controlled agent permissions is said to be connected later.

  8. 27:04 Demo Depth 300 · Novelty 2/3

    Demo: manifest visual editor, XAML IntelliSense in VS Code and three-command packaging

    Without WinApp CLI, deployment requires getting the manifest and assets right, creating a signing certificate whose subject matches the publisher, trusting it and knowing build properties. In VS Code the Package.appxmanifest can be opened in a visual editor from WinApp CLI to change publisher and assets, and the extension's XAML IntelliSense flags the invalid FrozenColumnCount property with a quick fix, described as new since there was no XAML or C# IntelliSense outside Visual Studio before. Packaging is reduced to cert generate, cert install and pack: the presenter installs a dev cert and runs winapp pack against the csproj for ARM64, producing a signed MSIX with identity; for release a real Store certificate is used, and signing is optional.

  9. 30:45 Deep dive Depth 300 · Novelty 2/3

    Recap of the end-to-end loop and private benchmarks for grounded agent tools

    The speakers recap the end-to-end journey (start, profile, find UI/API, test, deploy) done in about 30 minutes entirely with WinApp CLI. They present private benchmark results: without platform-aware tools agents answer WinApp command questions correctly 37% of the time versus 90% with the tools, and quality-check scores rise from 60-68% to 87%. Without tools agents produce generic suggestions and manual discovery; with tools they use grounded APIs, real XAML samples and a build-run-test cycle. Public benchmarks paired with each release are being worked on.

  10. 32:56 New Depth 300 · Novelty 2/3

    Availability today and experiments: hot reload, VS previewer, Reactor and Rust

    The speakers state that everything shown is available today: the CLI can be downloaded and the plugin with skills installed. They then present experiments for feedback: hot reload happening automatically with winapp run (eventually coming to Visual Studio) and a design-time previewer extension for Visual Studio showing XAML without running the app. Reactor is presented as a C#-first, model-view-update way to write WinUI UI in plain C# deployable as one file, and separating the XAML layer from the WinUI engine is aimed at supporting languages such as Rust, the top request; a QR code collects feedback.

  11. 35:29 Demo Depth 200 · Novelty 1/3

    Partner demo: Replit builds a WinUI regional sales app from local CSV data

    Replit's product lead shows how non-developers can build WinUI apps with Replit, which is packaged with the WinUI agentic skills. A prompt asks Replit to read regional reports in the Documents folder and build a WinUI app with a regional map of core metrics; the agent loads skills, connects to a sandbox running on MXC limited to pre-granted permissions, uses PowerShell, the design skill, dev workflow and UI testing. A pre-built app, Northstar, shows an interactive regional map, charts and annotated snapshots; local access can be narrowed from the whole Documents folder to a specific data folder.

  12. 41:09 New Depth 200 · Novelty 2/3

    WinUI platform progress: open source, performance, fundamentals and experimental controls

    The speakers cover five improvement areas: WinUI has been open-sourced on GitHub including the XAML compiler, modern tooling across CLI, VS Code and Visual Studio, ongoing performance and memory work, and closing gaps in fundamentals such as windowing APIs and input, with gamepad input just released. New controls TableView, chart controls and Ink Canvas are delivered in the experimental package for feedback. Experimental versions of these controls were also enabled in the WinUI Gallery.

  13. 44:22 Closing Depth 100 · Novelty 0/3

    Getting started: WinGet install, VS Code extension, Copilot plugins and feedback

    The speakers recap the session and point to getting started: install WinApp CLI through WinGet, the VS Code extension from the marketplace, and the Copilot plugins, which they believe are also available for Claude. Feedback is requested at aka.ms/WinUI, and the session ends without time for Q&A.

Announcements (24)

  • 06:09 not stated WinApp CLI

    WinApp extension for Visual Studio Code

    Puts a UI over WinApp CLI capabilities in VS Code, including manifest editing and XAML IntelliSense.

    Speaker’s quote (at 06:09)
    „If you're working in Visual Studio Code, we have the WinApp CLI extension. This puts a UI interface over a lot of stuff that we have working in WinApp CLI.“
  • 11:11 not stated WinApp CLI

    winapp perf profiling commands

    Captures a performance trace of a running app and analyzes hotspots, usable directly by an agent via the winapp-performance skill.

    Speaker’s quote (at 11:11)
    „It finds the running app and starts our performance capture here using win app perf start.“
  • 12:17 not stated WinApp CLI

    WinApp DevTools with inline comments

    A DevTools overlay launched from WinApp CLI that lets users inspect the visual tree and leave persistent comments that an agent can read and resolve.

    Speaker’s quote (at 12:17)
    „So what we can actually do is rerun this, but this time with WinApp CLI, I'm going to run dev tools on.“
  • 17:50 not stated WinApp CLI

    WinApp CLI find UI

    Searches by keyword and returns matching control samples from the WinUI Gallery, Community Toolkit gallery and Reactor gallery for grounding the agent.

    Speaker’s quote (at 17:50)
    „The find UI tool is a command in Win App CLI that allows you to search keywords and you will get back matched samples“
  • 21:00 not stated WinApp CLI

    WinApp CLI find API

    Lets the agent look up real members of Windows APIs and referenced NuGet packages to avoid using non-existent properties.

    Speaker’s quote (at 21:00)
    „So what we did is we have a package here called find API.“
  • 22:48 not stated WinApp CLI

    WinApp UI

    A set of WinApp CLI UI automation commands (inspect, click, scroll, screenshot, record, gestures) that agents or scripts can use for UI testing.

    Speaker’s quote (at 22:48)
    „So let's do some UI testing. For that is a tool called Win App UI.“
  • 26:03 not stated WinApp CLI

    WinApp UI sandbox mode

    Runs UI test sessions in a sandbox environment so the user's desktop and focus are not taken over.

    Speaker’s quote (at 26:03)
    „there is a command here on sandbox. So you can run in a sandbox environment so that you can keep doing your day-to-day business“
  • 26:33 roadmap WinApp CLI

    MXC integration for WinApp UI testing

    Connecting MXC as another isolation option that defines exactly which capabilities and rights the agent receives.

    Speaker’s quote (at 26:33)
    „That will be connected later on as well as another option so that you have, you know exactly what capabilities and options and rights“
  • 27:31 not stated WinApp CLI

    WinApp CLI manifest visual editor

    Opens Package.appxmanifest in a visual editor in VS Code to edit publisher, assets and other properties.

    Speaker’s quote (at 27:31)
    „If we right-click, we can actually open it with the visual editor from WinAppCLI.“
  • 28:24 not stated WinApp CLI

    XAML and C# IntelliSense in the WinApp VS Code extension

    Provides XAML IntelliSense with diagnostics and quick fixes in VS Code, outside Visual Studio.

    Speaker’s quote (at 28:24)
    „And this is a new feature that we introduced actually. There's no IntelliSense for XAML or C# before in an environment outside of Visual Studio.“
  • 28:54 not stated WinApp CLI

    WinApp CLI packaging and signing

    Generates and installs a certificate and packages a signed app bundle with three commands.

    Speaker’s quote (at 28:54)
    „With WinApp CLI is really just three commands. Cert generate, cert install, and package.“
  • 31:38 not stated WinApp CLI

    Public WinApp CLI benchmarks

    Public benchmarks paired with each release to track how agent accuracy with the tools changes over time.

    Speaker’s quote (at 31:38)
    „We are working on having public benchmarks that pair with every release so that we can track how these things are changing over time.“
  • 32:56 GA WinApp CLI

    WinApp CLI

    Command-line tool to create, build, run, inspect, test, profile, package and sign Windows apps, drivable by agents.

    Speaker’s quote (at 32:56)
    „So everything that we just showed you is available today. You can go download the CLI.“
  • 32:56 GA WinApp CLI

    WinUI agent plugin with skills

    Plugin with skills that grounds coding agents in how to use WinApp CLI and WinUI.

    Speaker’s quote (at 32:56)
    „everything that we just showed you is available today. You can go download the CLI. You can go install the plugin with the skills.“
  • 33:24 not stated WinApp CLI

    Hot reload with winapp run

    Experimental hot reload that happens automatically when running an app with winapp run, intended to later reach Visual Studio.

    Speaker’s quote (at 33:24)
    „So we're experimenting that with it's going to automatically happen with WinApp run.“
  • 33:24 not stated WinApp CLI

    Visual Studio previewer extension

    Experimental design-time previewer extension in Visual Studio that renders XAML while editing without running the app.

    Speaker’s quote (at 33:24)
    „We're also building on your design time tool, which is a previewer as an extension in Visual Studio.“
  • 34:26 not stated WinApp CLI

    Reactor

    C#-first model-view-update approach to writing WinUI UI in plain C#, deployable as one file.

    Speaker’s quote (at 34:26)
    „So we have a C# first way to build WinUI apps today. It's called the Reactor. You can write your UI in plain C#“
  • 34:26 not stated WinApp CLI

    WinUI support for Rust

    Platform tuning that separates the XAML layer from the WinUI engine to support other languages such as Rust.

    Speaker’s quote (at 34:26)
    „we're doing platform tuning on top of this or underneath this so that we support other languages such as Rust as well“
  • 42:06 not stated WinUI

    Open-source WinUI including XAML compiler

    The WinUI platform code and build infrastructure, including the XAML compiler, are open on GitHub.

    Speaker’s quote (at 42:06)
    „The #1 request for WinUI for a while was can you open source the platform, which we've done. Everything is centered in GitHub today.“
  • 43:23 not stated WinUI

    Gamepad input API

    Gamepad input support added to WinUI as part of closing input API gaps.

    Speaker’s quote (at 43:23)
    „We know there's API gaps for all of our input areas. So gamepad input is something that just came out.“
  • 43:51 not stated WinUI

    TableView

    Data table control with sorting, grouping, column resizing, frozen columns and inline editing, delivered in the experimental package.

    Speaker’s quote (at 43:51)
    „every enterprise application I've seen has a table or chart of some form, and we're happy to deliver these in the experimental package today.“
  • 43:51 not stated WinUI

    Chart controls

    Chart controls for WinUI apps, delivered in the experimental package.

    Speaker’s quote (at 43:51)
    „every enterprise application I've seen has a table or chart of some form, and we're happy to deliver these in the experimental package today.“
  • 43:51 not stated WinUI

    Ink Canvas

    Performant inking control for WinUI, currently experimental.

    Speaker’s quote (at 43:51)
    „Ink Canvas is something that not only enterprise folks have been asking for, but a lot of people who are using WinUI.“
  • 43:51 not stated WinUI

    Experimental controls in WinUI Gallery

    Experimental versions of the new controls can be explored in the WinUI Gallery.

    Speaker’s quote (at 43:51)
    „The team just enabled experimental versions of these controls in the WinUI gallery.“

Demos (6)

  • 07:34 You can try it yourself WinApp CLI

    A developer scaffolds a new WinUI app with package identity from the terminal instead of File > New in Visual Studio.

    Steps (5)
    1. Open a terminal (PowerShell) in an empty projects folder.
    2. Run winapp new to list the available templates.
    3. Select the NavigationView WinUI template from the list (blank WinUI, unit test and Reactor templates are also offered).
    4. Enter the app name Hangar and let the CLI scaffold the project.
    5. Inspect the generated project folder and run the app (the finished Hangar app is shown in a separate tab).

    Prerequisites: WinApp CLI installed (later stated to be installable via WinGet).

  • 10:43 You can try it yourself WinApp CLI with GitHub Copilot

    A developer has an agent profile a slow WinUI page, verifies the diagnosis in DevTools, leaves inline comments and lets the agent fix them.

    Steps (9)
    1. Install the WinApp CLI plugin with skills for the agent and run the app.
    2. Ask the agent in natural language to profile the slow Work Orders page without fixing anything.
    3. Let the agent load the winapp-performance skill, run winapp perf start, reproduce the scenario and run winapp perf analyze.
    4. Read the agent's conclusion (ListView realizing more rows than fit on screen) and suggested next experiments.
    5. Rerun the app with winapp run --detach --devtools on.
    6. In the DevTools overlay, use the element picker to jump to the ListView in the visual tree and confirm that rows off screen are loaded.
    7. Leave inline comments such as '…'; they are saved in the .winapp folder in the project root.
    8. Ask the agent to fix the comment left with DevTools; it loads the WinUI DevTools skill, applies the fix and resolves the comment.
    9. Rerun the app and confirm the Work Orders page loads without lag.

    Prerequisites: WinApp CLI and the WinApp CLI plugin with skills installed for the coding agent; a WinUI project.

  • 16:30 Not stated WinApp CLI with GitHub Copilot

    A developer replaces a custom list with the right WinUI control and fixes an invalid property, with the agent grounded in Microsoft sample galleries and API metadata.

    Steps (8)
    1. Ask the agent to find the right WinUI control for sorting, grouping, resizing and inline editing and show sample code without changing code.
    2. Let the agent load the winapp-find-ui skill and search with keywords such as data, grid, sort, group, resize.
    3. Review the returned TableView scenarios, the feature table, the XAML and the C# code-behind for grouping and filtering.
    4. Let the agent apply TableView, rebuild and verify grouping, sorting, inline editing and column resizing in the app.
    5. Manually add FrozenColumnCount to the TableView column in XAML and run the app; the build fails with an unknown member error.
    6. Ask the agent to fix the error, pin the work order column and prove it works; it reproduces the error and loads the find API skill.
    7. Let the agent list members of TableViewTemplateColumn, find FrozenEdge, set FrozenEdge to Leading and rebuild.
    8. Scroll horizontally and confirm the work order column stays pinned.

    Prerequisites: WinApp CLI and its plugin with skills; the TableView control, which is said to ship in the WinUI experimental package.

  • 22:48 Not stated WinApp CLI (WinApp UI)

    A developer or manager verifies implemented features with a scripted UI test run that collects screenshots and video as evidence.

    Steps (6)
    1. Run the WinApp UI help command to list available UI automation commands (inspect, windows, focus, click, scroll, screenshot, record, gestures, pen).
    2. Write a PowerShell script that combines these commands to test the frozen column, column resizing and inline editing.
    3. Launch the app and run ./verify-work-orders from the terminal; the controlled window is highlighted with a border while the script drives it.
    4. Open the generated evidence folder in File Explorer and compare screenshots (e.g. sorted columns, wider Components column).
    5. Play the recorded video in the evidence folder to review the full run.
    6. Optionally use the sandbox command to run the tests isolated from the desktop.

    Prerequisites: WinApp CLI installed; a custom PowerShell script built from WinApp UI commands (not provided in the session).

  • 27:31 You can try it yourself WinApp CLI and WinApp extension for Visual Studio Code

    A developer edits app identity, catches XAML errors in VS Code and produces a signed MSIX package from the command line.

    Steps (7)
    1. Open the project in VS Code and locate Package.appxmanifest.
    2. Right-click the manifest and open it with the WinApp CLI visual editor to change publisher and assets.
    3. Open WorkOrdersPage.xaml and hover the squiggly on the invalid property to see the IntelliSense error and quick fix.
    4. Generate a dev certificate with winapp cert generate (done beforehand on stage).
    5. Run winapp cert install with the dev certificate.
    6. Run winapp pack pointing at the .csproj, the target architecture (ARM64) and the certificate.
    7. Collect the signed MSIX bundle; for release, switch to a real Store certificate or package unsigned if preferred.

    Prerequisites: WinApp CLI and the WinApp VS Code extension installed; an elevated terminal was used for certificate installation on stage.

  • 36:48 Not stated Replit with WinUI agentic skills

    A sales manager without coding skills generates a WinUI dashboard app with a regional map from about 600 local CSV reports.

    Steps (6)
    1. Open Replit and grant it local access to the machine's Documents folder.
    2. Submit a prompt asking it to look through the regional reports and build a WinUI app with a regional map of core metrics.
    3. Let the agent load the WinUI skills, connect to the MXC sandbox, analyse the CSV files with PowerShell and build and UI-test the app (about 15 minutes).
    4. Ask the agent to run the app and open the generated Northstar app.
    5. Use the interactive regional map and charts, then take an annotated snapshot to share.
    6. Optionally narrow local access from Documents to the specific data folder.

    Prerequisites: Replit with local access granted to the documents folder; local CSV report data.

Watch on Microsoft’s site: BRK394