You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you subscribe to any event in XAML (like KeyDown) but the method doesn't exist in your C# code, you can still successfully build your project. But if you run it and the XAML is executed your application crashes.
And because of the fact that it crashes the application (unlike a non existing binding) it should be analyzed and throw an error during the build.
The text was updated successfully, but these errors were encountered:
@franchyd Yes, you are right. If we can bring the xaml to build time, such as SourceGenerator, that we can handle this issues. And bring the SourceGenerator to xaml is what I look to.
Well technically developers do not need to rely on the built-in InitializeComponents and could handle the XAML themselves. Not saying that many (or any) do, but it could be potentially breaking change.
If you subscribe to any event in XAML (like
KeyDown
) but the method doesn't exist in your C# code, you can still successfully build your project. But if you run it and the XAML is executed your application crashes.And because of the fact that it crashes the application (unlike a non existing binding) it should be analyzed and throw an error during the build.
The text was updated successfully, but these errors were encountered: