Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XAML] Compile Errors for invalid references in XAML #26076

Open
MAUIoxo opened this issue Nov 23, 2024 · 0 comments
Open

[XAML] Compile Errors for invalid references in XAML #26076

MAUIoxo opened this issue Nov 23, 2024 · 0 comments

Comments

@MAUIoxo
Copy link

MAUIoxo commented Nov 23, 2024

Description

In the past, I was confronted with the situation that I re-created XAML views which included styles, e.g. a Style that was set in a Label but wasn’t actually defined anywhere in a Resource Dictionary. The style wasn’t available in the global styles.xml and also not in the local resource dictionary of the ContentPage/ContentView.

There were no compile errors, but the App just crashed for no obvious reason.

This feature request is about errors during Compile already to detect such missing things.

I say things as it can also happen that it is a binding to a property in a ViewModel or View which should be detected during Compile already as missing.

Public API Changes

Don’t know about API changes, just from a User/Developer perspective it would be great to have it.

Intended Use-Case

Early error detection for missing things like Styles, Bindings etc. that are unresolved and lead to crashes in the App when displaying a View/Page

Compile errors would already be sufficient, but maybe also a highlighting in the XAML already.

@MAUIoxo MAUIoxo changed the title Compile Errors for invalid references in XAML [XAML] Compile Errors for invalid references in XAML Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant