Skip to content

ContentPage Shell colors are replaced on navigation #15

@NanthiniMahalingam

Description

@NanthiniMahalingam

Description

We set Shell.ForegroundColor and Shell.BackgroundColor on some of our ContentPages. In the latest MAUI version on Android the page that was navigated to last overwrites the colors on other open pages.

Steps to Reproduce

Clone the sample app.

The app works as expected on iOS.
The app works as expected on Android when using 8.0.100, 9.0.0, or 9.0.22.
The app does not work as expected on Android when using 9.0.30, 9.0.40, or 9.0.70.

The app has two Tabs, Home and Other.

On the Home tab click the Go to child button
Click the Other tab
Click the Home tab, the Shell colors are no longer correct
Click the Other tab and then click the Go to child button
Click the Home tab, the Shell colors are are the same colors used by the Other tab child page.
To continue testing. Leave one child page open, then navigate to the other. The page that was navigated to last will replace the Shell colors set in the previously opened child page.

Link to public reproduction project repository

https://github.com/aalsamoht/ReproBranches/tree/maui/shell-colors

Version with bug

9.0.70 SR7

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.22 SR2.2

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions