Using the inspector
The inspector is a live, in-app devtools panel. It reads the same UILab tree the renderer draws and writes style edits back into the live stylesheet.
Enable it
Devtools are enabled by default on desktop. Set
EnableDevTools = true on [AppRoot], or in
WindowSettings when using the low-level window API.
[AppRoot(
Width = 1180,
Height = 760,
Title = "My app",
EnableDevTools = true)]
public sealed class App : Component
{
public override Node Render() => Div(new() { ClassName = "app" });
}
Open, close and dock
| Action | How |
|---|---|
| Toggle | F12 or Ctrl+Shift+I |
| Close | The close button in the toolbar |
| Dock bottom | The bottom-edge dock button; the app viewport shrinks above it. |
| Dock right | The right-edge dock button; the app viewport shrinks beside it. |
| Window mode | The window dock button opens a standalone inspector window. |
| Resize | Drag the splitter between the app and the docked panel. |
The panel can also be controlled from code:
ShowDevTools(), HideDevTools(),
ToggleDevTools() and DevTools.Dock.
Tabs at a glance
@keyframes groups and their stops.
Deploy
Build desktop, Android and WebAssembly targets and download them.
Desktop and browser
The inspector is part of the desktop/Android renderer. The browser host renders into native DOM and leaves inspection to the browser devtools, which already know about CSS, layout and accessibility.