-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Crash when CustomControl Property use StaticResource #26881
Labels
t/bug
Something isn't working
Comments
this is the stacktrace I got
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I have some CustomControl like this
and
ButtonConfiguration
is something like thisand some ButtonConfiguration is like this
and when I set style in
App.xaml
this will cause crash when in Release (both on Android and iOS). Debug working fine. But if I set like this
it is working fine in Release. Not really sure what is the cause of this
Steps to Reproduce
Link to public reproduction project repository
https://github.com/albilaga/mauitest
Version with bug
9.0.21 SR2.1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.100 SR10
Affected platforms
iOS, Android
Affected platform versions
iOS and Android
Did you find any workaround?
Hard code the value instead of using StaticResource but this mean then when refactoring need to be careful
Relevant log output
#26881 (comment)
The text was updated successfully, but these errors were encountered: