dotnet / dotnet/wpf

Usercontrol: if changed manually from a page or similar

Open
#11,095 1 comment 0 reactions 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Usercontrol:-if-changed-manually-from-a-/10961837)._

---
[severity:It bothers me. A fix would be nice]
If a WPF UserControl or Page XAML file is missing its required .xaml.cs code-behind file, the build should fail with an error, not silently succeed. This causes hard-to-diagnose runtime issues.

the solution is built without errors and says no binding errors, but navigation silently fails, no errors or warning found.

---
### Original Comments

#### Feedback Bot on 9/8/2025, 09:53 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.