[iOS/Android] Setting Background to null will not update rendering (for example Label.Background = null after it was set to Yellow stays Yellow) #24725
Labels
area-controls-label
Label, Span
partner/hot-reload-xaml
Issues impacting XAML Hot Reload experiences
partner/hot-reload-xaml-full-page-fixed
Issues with XAML incremental hot reload that are fixed after a full page hot reload
platform/android 🤖
platform/iOS 🍎
t/bug
Something isn't working
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
The text was updated successfully, but these errors were encountered: