WinApp CLI 0.8 Makes UI Changes Observable, Not Automatically Permanent
Microsoft's experimental WinUI DevTools can inspect a running app and annotate controls for an agent, but live property edits disappear when the app restarts.
On this page
A button that looks wrong is easy to spot and often slow to trace. Is its size set on the control, inherited from a style, or supplied by a resource? WinApp CLI 0.8’s experimental WinUI DevTools aims to shorten that inspection loop. Microsoft describes selecting a control in the running app, viewing its place in the visual tree, and inspecting its properties, bindings, and layout. [1]
The release also adds terminal-based performance profiling for WinUI activity and build, run, and MSIX packaging support for C++ projects. The distinct story is the link between a visible UI element and the source that owns it. [1] [2]

From a visible control to its owner
In a supported WinUI 3 project, running winapp run . starts the app with a DevTools toolbar by default. A developer can select an element and inspect the visual tree, layout, and property values. When the tool can match the live element to project source, it can show the XAML file and line that define it. The property pane can distinguish values set directly from values supplied through styles or resources. [1]
A screenshot tells the team which pixels are wrong; the visual tree can reveal which element produced them. For a developer pairing with an agent, a comment attached to the control can preserve context such as “this label wraps after the second word” better than a prompt that says only “fix the button.” Microsoft documents commands to retrieve those comments and says they are saved with the project. [1]
That resembles a general principle in agent-assisted code work: tie observations to reviewable implementation changes. The tool can make an observation more precise, but the developer still decides what code change belongs in the product.
A live edit is an experiment, not the fix
The preview lets a developer try a property value against the running app. Microsoft is explicit that these edits disappear when the app restarts. To keep a change, update the XAML source and rebuild. Replacing a bound value may also replace the binding for that run, so a control that appears corrected in the preview may no longer behave like the application normally does. [1]
The right workflow has two steps. Use the live surface to learn whether a property change addresses the visible problem. Then make the corresponding source edit and test it through the application’s normal build and review path. Treat the first step as a hypothesis about implementation, not a completed code change.
That boundary matters with an agent. A comment can identify the control and desired outcome; it does not prove the agent changed the right file, preserved a binding, or fixed the responsive state that caused the defect. Review the diff, run the app, and check the control at relevant sizes and themes.
Preview means expect change
Microsoft labels WinUI DevTools an experimental preview and says features and behavior may change. It supports WinUI 3 apps written in C# and C++; it does not start by default in CI or Windows Sandbox. A local interactive workflow should not silently become a CI dependency. The CLI can disable DevTools for a run, and automated builds can keep using explicit project and test commands. [1] [3]
Performance profiling is separate from the DevTools inspection flow. Microsoft says it can record WinUI activity to investigate expensive XAML parsing, layout, and rendering. A trace can help identify where to look, but a profiling result still needs to be reproduced and interpreted against the app’s real workload. A single trace is not a general performance guarantee. [1]
Try it with one reviewable bug
Use a non-critical WinUI project and choose a UI issue with a clear acceptance check:
- Launch the project with WinApp CLI and inspect the control in its running context.
- Record its visual-tree location, current property source, and layout measurements.
- Try one adjustment, then restart the app to confirm the experiment does not persist.
- Make a source change, review the diff, and rebuild.
- Check the same control in the themes, window sizes, and states relevant to the bug.
The useful promise is not that a tool makes the interface correct on its own. It is that a developer or agent can start from a more exact observation, then carry it into an ordinary, reviewable change.
Frequently asked questions
Are the WinApp CLI 0.8 DevTools ready for production workflows?
Microsoft labels WinUI DevTools an experimental preview and says features and behavior may change. Use it as an inspection aid while reviewing and testing any resulting source edits.
Do live property edits change my XAML source?
No. Microsoft says live experiments disappear when the app restarts. You must make and verify the corresponding source change yourself; changing a bound value can also replace the binding for that run.
Does the DevTools toolbar appear in CI?
Microsoft says it starts by default for supported WinUI projects launched with winapp run, but not by default in CI or Windows Sandbox. The CLI can also turn it off for a run.



/* Comments */
Comments are offline right now — we reconnect automatically, nothing is lost.