KEMBAR78
Fixes Setting BackgroundColor to null does not actually changes BackgroundColor #22914 by Jon2G · Pull Request #22917 · dotnet/maui · GitHub
Skip to content

Conversation

@Jon2G
Copy link
Contributor

@Jon2G Jon2G commented Jun 7, 2024

PR REVERTED #30031

Description of Change

Expecting a specific layout type on ViewExtensions for Android and iOS makes impossible to set backgroundColor to null once it has been set

Issues Fixed

Fixes #

Validate if platformView is not null instead of expecting it to ALWAYS be LayoutViewGroup

@Jon2G Jon2G requested a review from a team as a code owner June 7, 2024 18:32
@Jon2G Jon2G requested review from jfversluis and tj-devel709 June 7, 2024 18:32
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jun 7, 2024
@Jon2G
Copy link
Contributor Author

Jon2G commented Jun 7, 2024

@dotnet-policy-service agree

Copy link
Member

@mattleibow mattleibow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR! This makes a lot of sense and looks good.

Are you able to add a UI test to confirm this works as expected?

This PR has a good example of what a UI test is: https://github.com/dotnet/maui/pull/21250/files It has 2 new tests added which consist of 32 parts:

  • the page for the issue in the test app
  • the test for appium

@mattleibow
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Jon2G
Copy link
Contributor Author

Jon2G commented Jun 7, 2024

@mattleibow Working on it!

@PureWeen PureWeen added the area-controls-general General issues that span multiple controls, or common base classes such as View or Element label Jun 8, 2024
@dotnet dotnet deleted a comment from azure-pipelines bot Jun 9, 2024
@jsuarezruiz
Copy link
Contributor

Launching the build again, just applied some small changes in the test adding a couple of pending namespaces and changing the test name.

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PureWeen PureWeen changed the base branch from main to inflight/current June 13, 2025 12:07
@PureWeen PureWeen merged commit 291b810 into dotnet:inflight/current Jun 13, 2025
37 of 79 checks passed
github-actions bot pushed a commit that referenced this pull request Jun 16, 2025
…roundColor #22914 (#22917)

* Fixes #22914

* Add tests

Add tests for appium

* Fix the build

* Use VerifyScreenshot

* @jsuarezruiz suggested changes

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
@mattleibow
Copy link
Member

After merging, CI was basically red with all the backgrounds being black.

I will revert now and we can revisit.

mattleibow added a commit that referenced this pull request Jun 17, 2025
PureWeen pushed a commit that referenced this pull request Jun 17, 2025
PureWeen pushed a commit that referenced this pull request Jun 21, 2025
…roundColor #22914 (#22917)

* Fixes #22914

* Add tests

Add tests for appium

* Fix the build

* Use VerifyScreenshot

* @jsuarezruiz suggested changes

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
PureWeen pushed a commit that referenced this pull request Jun 21, 2025
PureWeen pushed a commit that referenced this pull request Jun 25, 2025
…roundColor #22914 (#22917)

* Fixes #22914

* Add tests

Add tests for appium

* Fix the build

* Use VerifyScreenshot

* @jsuarezruiz suggested changes

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
PureWeen pushed a commit that referenced this pull request Jun 25, 2025
PureWeen pushed a commit that referenced this pull request Jun 25, 2025
…roundColor #22914 (#22917)

* Fixes #22914

* Add tests

Add tests for appium

* Fix the build

* Use VerifyScreenshot

* @jsuarezruiz suggested changes

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
PureWeen pushed a commit that referenced this pull request Jun 25, 2025
github-actions bot pushed a commit that referenced this pull request Jun 26, 2025
…roundColor #22914 (#22917)

* Fixes #22914

* Add tests

Add tests for appium

* Fix the build

* Use VerifyScreenshot

* @jsuarezruiz suggested changes

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
github-actions bot pushed a commit that referenced this pull request Jun 26, 2025
github-actions bot pushed a commit that referenced this pull request Jun 26, 2025
…roundColor #22914 (#22917)

* Fixes #22914

* Add tests

Add tests for appium

* Fix the build

* Use VerifyScreenshot

* @jsuarezruiz suggested changes

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
github-actions bot pushed a commit that referenced this pull request Jun 26, 2025
PureWeen pushed a commit that referenced this pull request Jun 27, 2025
…roundColor #22914 (#22917)

* Fixes #22914

* Add tests

Add tests for appium

* Fix the build

* Use VerifyScreenshot

* @jsuarezruiz suggested changes

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
PureWeen pushed a commit that referenced this pull request Jun 27, 2025
github-actions bot pushed a commit that referenced this pull request Jun 27, 2025
…roundColor #22914 (#22917)

* Fixes #22914

* Add tests

Add tests for appium

* Fix the build

* Use VerifyScreenshot

* @jsuarezruiz suggested changes

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
github-actions bot pushed a commit that referenced this pull request Jun 27, 2025
PureWeen pushed a commit that referenced this pull request Jun 27, 2025
…roundColor #22914 (#22917)

* Fixes #22914

* Add tests

Add tests for appium

* Fix the build

* Use VerifyScreenshot

* @jsuarezruiz suggested changes

---------

Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
PureWeen pushed a commit that referenced this pull request Jun 27, 2025
PureWeen added a commit that referenced this pull request Jun 28, 2025
For more information about inflight process check
https://github.com/dotnet/maui/wiki/Inflight-Branch-Process

# .NET MAUI Release Notes - Inflight/Candidate Branch

## What's Changed

### MAUI Product Fixes
* [iOS] CarouselView with CarouselViewHandler2 make app crash when
Loop="False" and user scroll to the last position - fixes #26863 by
@kubaflo in #26868
* Fixes Setting BackgroundColor to null does not actually changes
BackgroundColor - fixes #22914 and #19576 by @jgonzalez-gft in
#22917
* Fixed the picker title's color - fixes #16737 by @kubaflo in
#23075
* [android] Fallback to default icons in SearchHandler by @aheubusch in
#25067
* ScrollView's Background on iOS - fixes #24016 by @kubaflo in
#25541
* [iOS] Enabled MultiTouch Support for Handling Multi-Touch Points in
GraphicsView - fixes #29461 by @prakashKannanSf3972 in
#29895
* Optimize converters for GridLength, ColumnDefinition, and
RowDefinition - performance improvement by @emiller in
#20048
* Add defensive IsAlive check to Android ViewExtensions.OnUnloaded -
fixes #28051 by @jfversluis in #29934
* [Windows] Fixed runtime update issue for SearchBar PlaceholderColor
and BackgroundColor - fixes #29962 by @Tamilarasan-Paranthaman in
#29965
* Weak subscription to CanExecuteChange events - fixes #16124 by
@sneumaier in #29837
* [iOS, Mac] Fix for downsized image retaining original dimensions in
GraphicsView - fixes #30006 by @SyedAbdulAzeemSF4852 in
#30007
* [Android] Prevent Picker from Gaining Focus on Touch - fixes #19739,
#8546, #13503, #24862, #28121, #21704, #15394 by @bhavanesh2001 in
#29068
* Fix CV1 GridItemsLayout centering single item AND Fix Empty view not
resizing when bounds change - fixes #29595, #29634 by @albyrock87 in
#29639

### Testing
* [Testing] Feature Matrix UITest Cases for Button by @TamilarasanSF4853
in #29803
* [Testing] Feature matrix UITest Cases for BoxView Control by
@HarishKumarSF4517 in #29808
* [Testing] Enable HandlerDoesNotLeak for Button and ProgressBar by
@bhavanesh2001 in #29896
* [Testing] Add Validation Test For Issue28051 On Android by
@prakashKannanSf3972 in #30026
* [Testing] Fixed Test case failure in PR 30115 - [2025/06/23] Candidate
by @HarishKumarSF4517 in #30136

### Dependency Updates
* Bump to 1.7.250606001 of WindowsAppSDK by @sneumaier in
#29915

### Housekeeping
* [housekeeping] Update namespaces in HostApp and Shared tests projects
by @bhavanesh2001 in #29904
* Update SetterSpecificity.cs Remove Extra Line From Bad Merge by
@sneumaier in #29987
* Revert - Fixed the Label not sized correctly on Android by @Ahamed-Ali
in #30023
* Revert "Fixes Setting BackgroundColor to null does not actually
changes BackgroundColor #22914 (#22917)" by @mattleibow in
#30031
* [create-pull-request] automated change by @github-actions[bot] in
#30019
* [create-pull-request] automated change by @github-actions[bot] in
#30043
* [create-pull-request] automated change by @github-actions[bot] in
#30078
* Update Controls.TestCases.HostApp.csproj by @HarishKumarSF4517 in
#30124

## New Contributors
* @albyrock87 made their first contribution in
#29639
* @SyedAbdulAzeemSF4852 made their first contribution in
#30007
* @emiller made their first contribution in
#20048
* @jgonzalez-gft made their first contribution in
#22917
* @aheubusch made their first contribution in
#25067

**Full Changelog**:
https://github.com/dotnet/maui/compare/main..inflight/candidate
@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-general General issues that span multiple controls, or common base classes such as View or Element community ✨ Community Contribution

Projects

None yet

6 participants