The useful distinction is between seeing a change work and making that change permanent. This release shortens the journey from an awkward-looking button to the code responsible for it—but live property edits are experiments, not automatic source fixes.
WinUI DevTools: inspect first, edit second
The experimental preview supports WinUI 3 applications written in C# and C++. From a supported project directory, launch the application with:
winapp run.
Microsoft says a DevTools toolbar appears in the running application. Choose Select element, then click a control to open the companion inspector with its visual-tree position, properties, bindings, and layout.
The Just my XAML filter narrows the view to developer-authored elements rather than the framework internals of control templates. Where DevTools can confidently match an element to the project, it also identifies its XAML file and line.
That qualification matters: source navigation is conditional, not a promise that every object in the visual tree has an immediately identifiable declaration.
Live changes have an expiration date
The property inspector supports experiments with dimensions, spacing, brushes, and resource references. It can also distinguish values supplied directly by an element from those originating in styles or resources.
Microsoft’s documented boundaries are important:
- Property edits affect the running application, not its source files.
- Restarting the application discards those experiments.
- Replacing a bound property value can replace its binding for that session.
- A lasting fix requires updating the appropriate source and rebuilding.
A sensible workflow is therefore to inspect the value’s origin, try an adjustment, then make the corresponding source change. Otherwise, a successful visual experiment can become tomorrow’s “why did that revert?” mystery.
DevTools starts automatically for supported WinUI projects, but not by default in CI or Windows Sandbox. To disable it explicitly for a run:
winapp run. --devtools off
Microsoft’s repository documentation also exposes a headless mode: --devtools headless enables inspection without drawing the in-app toolbar. That provides a useful distinction between disabling diagnostics and merely removing their visible overlay.
Feedback that points to the actual control
The comments feature lets a developer select an element and attach feedback through the toolbar. Comments retain element context, are saved with the project, and remain readable after the application closes.
Microsoft documents this command-line handoff:
winapp devtools comments list
winapp devtools comments get cmt_example
winapp devtools comments update cmt_example --status resolved --note "Updated the label"
Replace cmt_example with an actual comment ID. The intended process is to inspect the comment’s context, confirm the source match, implement the change, and then resolve the feedback—not treat the comment itself as proof that the work is complete.
For direct inspection, the release includes:
winapp devtools inspect
winapp devtools search Save
winapp devtools get-source SaveButton
winapp devtools get-property SaveButton Width
winapp devtools set-property SaveButton Width 200
SaveButton must identify the intended element; Microsoft recommends a selector returned by inspection or a unique element name. Add -a <pid> when multiple applications have DevTools, and --json for structured output.
This complements rather than replaces winapp ui: UI Automation exercises an application as a user would, while DevTools examines its WinUI structure and properties.
Performance profiling: useful evidence, specific limits
The new winapp perf workflow records WinUI activity through Windows Event Tracing, or ETW. Microsoft’s example begins with:
winapp run. --profile.\traces\navigation --detach
Reproduce the slow interaction, then stop recording using the returned capture ID:
winapp perf stop CAPTURE_ID
winapp perf analyze.\traces\navigation
The reports cover process resources and observed UI-thread work, including XAML parsing, layout, elements, and frame intervals. Recorded garbage-collection information can help investigate overlapping activity in.NET applications.
For narrower analysis:
winapp perf analyze.\traces\navigation --view parsing
winapp perf analyze.\traces\navigation --view hotspots --min-frame-ms 16.67
There are three essential caveats in Microsoft’s announcement: default recording can miss early startup; --profile-mode elevated captures from launch by elevating the recorder while leaving the application under the normal account; and profiling is local-only. UI-thread timings are not GPU execution timings or displayed frame-rate measurements.
The practical interpretation is to use these reports to investigate where recorded UI work accumulates, not to turn a single timing threshold into a verdict on overall rendering performance.
C++ support still needs the C++ toolchain
Version 0.8 adds a project-to-package workflow for Visual Studio C++ projects:
winapp run.\MyApp.vcxproj
winapp package.\MyApp.vcxproj --cert.\devcert.pfx
Microsoft says the run command builds through Visual Studio’s MSBuild, while the package command can produce a signed MSIX. These commands do not eliminate compiler prerequisites: the project still needs Visual Studio or Build Tools and its required C++ components, including WinUI development tools for C++ WinUI applications.
Microsoft Learn independently confirms the Desktop development with C++ workload and C++ WinUI tooling requirement. The terminal becomes the workflow’s front door, not a replacement for the build toolchain behind it.
Smaller changes that remove daily friction
Microsoft also lists several practical additions:
- Parallel checkouts:
--unique-identitygives separate checkouts distinct package identities, avoiding one branch replacing another’s registration. The repository reference says that identity is derived from the checkout’s path. - Clearer recordings: WinUI menus, flyouts, and tooltips are included;
--cursoradds the pointer and click highlights, while--no-click-highlightsuppresses the latter. - Better automation: coordinate-based clicks and hovering, horizontal scrolling, and type or class-name filters without a text query.
- Improved discovery:
find-uisearches control descriptions and recognizes more table, data-grid, and spreadsheet terminology.
The announcement also lists fixes for WebView2-related inspection hangs, duplicate referenced-project builds, signing-hash selection, and conflicting reactor template names. DLL-loading hardening and cryptography dependency updates round out the release.
Getting started without guessing your version
Microsoft provides these installation options:
winget install Microsoft.WinAppCLI
Or, for a project-local npm development dependency:
npm install --save-dev @microsoft/winappcli
Before troubleshooting missing commands, establish which executable version is actually running:
winapp --version
Microsoft Learn documents --version and uppercase -V for this purpose; lowercase -v means verbose output on commands. For npm-based use, Learn documents npx winapp --help as the installation check.
The strongest reason to try v0.8 is the tighter inspection loop: locate a control, understand its current state, test an adjustment, and carry a verified change back into source. Just keep the experimental label—and the boundary between live state and saved code—firmly in view.
References
- Windows App Development CLI v0.8: WinUI DevTools Experimental Preview #ifdef Windows · 2026-11-09T19:37:22+00:00
- Using winapp CLI with WinUI - Windows apps | Microsoft Learn learn.microsoft.com
- CLI Documentation and Usage - Windows apps | Microsoft Learn learn.microsoft.com