Closed spadapet closed 1 month ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Yeah, the AI bot found a dupe:
Duplicate of https://github.com/dotnet/maui/issues/22914
Description
In iOS and Android, when Background was set to null, the platform element's Background was not changed at all (except for Layouts). This should apply to any elements, such as Labels.
Steps to Reproduce
MainPage.xaml
in the Sandbox project<Label Text="Foo" Background="Yellow" />
<Label Text="Foo" />
RESULT: The Label is still Yellow in the app (XAML Hot Reload does remove the property value)
EXPECT: Not Yellow anymore
Link to public reproduction project repository
https://github.com/dotnet/maui
Version with bug
9.0.0-rc.1.24453.9
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
You can set a Transparent background brush instead of null. But a fix is still needed for XAML Hot Reload to work properly.
Relevant log output
No response