Start by identifying which layer owns the behavior: application state, binding, the control property system, layout, styling, rendering, or the platform integration. Reproduce the issue with the smallest view that still demonstrates it.
| Symptom | Check first |
|---|---|
| A control is invisible | Theme installation, bounds, visibility, foreground/background, font availability |
| A binding is empty | DataContext, registered names, source type, getter metadata |
| A value does not update | Property-change notification and binding mode |
| A style has no effect | Selector match, resource scope, effective property value source |
| A list realizes too many rows | Viewport constraints and nested scrolling |
| Text looks wrong in the browser | Explicit fonts, fallback fonts, rendering mode |
| Runtime markup cannot find a type | Type registration and XML namespace |
| A component panics about the order of hooks | A hook called behind a condition or a loop; call every hook on every run |
| A component is reported as runaway | Its function writes a signal it reads; move the write to a handler or an effect |
| List items lose their state when reordered | Missing or unstable key values; the MissingKeys and DuplicateKey diagnostics |
| A value in a component does not update | It was read once (count.get().to_string() in a run-once component); pass the signal or a closure |
| A popup or dialog differs by platform | Hosting, focus, and backend-specific behavior |
Inspect before changing
Section titled “Inspect before changing”Open developer tools where available and inspect both logical and visual trees; for a declarative view, the component inspector (Shift+F12) shows the components, their hooks, and where each control value comes from. Find the actual control, inspect its resolved values, then look at layout constraints and matched styles. A template part can be visually responsible for a result while the owning control supplies its state.
Compare against a sample
Section titled “Compare against a sample”Use the same framework version, theme, and backend as your application. A working sample on next does not establish that an API exists in your stable release. Include an exact commit or package version in an issue report.
Make a useful report
Section titled “Make a useful report”Provide a minimal project, expected and actual behavior, platform/architecture, renderer, theme, and reproduction steps. Include whether the issue occurs in the ControlCatalog. Remove unrelated services or private data from the reproduction.
Work through an empty label
Section titled “Work through an empty label”Suppose Text="{Binding DisplayName}" shows nothing:
- Temporarily set
Text="Binding check". If it stays invisible, inspect layout, visibility, theme, and foreground first. - Restore the binding and confirm the inherited
DataContextis the expected model. - Check that markup metadata exposes
DisplayNamewith the exact spelling. - Set an initial value before showing the view. If it appears once but never changes, inspect notifications.
- If edits should flow back, verify the setter and
Mode=TwoWay.
This isolates display, source lookup, and notification failures without rewriting the view. Continue with binding diagnostics when the source is the problem.
Follow the relevant contract
Section titled “Follow the relevant contract”- TextBlock and TextBox — text and editing properties.
Binding— source paths and binding options.- Grid and ScrollViewer — sizing and scrolling.
Style— selector/setter behavior.- Developer tools — inspect the effective result before changing code.