Skip to content
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

NavigationPage: BarBackgroundColor, BarTextColor and Title not updating #19859

Closed
3sRykaert opened this issue Jan 12, 2024 · 6 comments · Fixed by #24781
Closed

NavigationPage: BarBackgroundColor, BarTextColor and Title not updating #19859

3sRykaert opened this issue Jan 12, 2024 · 6 comments · Fixed by #24781
Labels
area-navigation NavigationPage fixed-in-9.0.0-rc.2.24503.2 migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@3sRykaert
Copy link

Description

When I try to change the BarBackgroundColor, BarTextColor or Title of a NavigationPage it is not working (only tested on Android).
Original whenrunning the page: image

Button click: expected colors red and yellow to be switched in NavigationPage:
image

Steps to Reproduce

  1. Get source from https://github.com/3sRykaert/MauiNavigationPage
  2. Check out the MauiPages.Pages.FlyoutPageDemo.DemoFlyoutPage
  3. The "Button_OnClicked" event should switch the BarBackgroundColor and BarTextColor from red to yellow and vice versa. (this is not happening)
  4. The title of the NavigationPage is also not showing

Link to public reproduction project repository

https://github.com/3sRykaert/MauiNavigationPage

Version with bug

8.0.5

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@3sRykaert 3sRykaert added the t/bug Something isn't working label Jan 12, 2024
@samhouts samhouts added the migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert label Jan 12, 2024
@3sRykaert
Copy link
Author

This seems to fixed in Maui 8.0.6 :-)
I think cause of this fix #18684

@bartmeeus
Copy link

This seems to fixed in Maui 8.0.6 :-) I think cause of this fix #18684

I see the same behaviour with 8.0.6, did you change anything else?

@3sRykaert
Copy link
Author

@bartmeeus indeed very weird, in my "real project" it worked after changing the packages.
In the demo project linked in the repo above, it's still broken.
Very weird... :-/

@kevinxufei
Copy link

Can repro this issue at Android platform on the latest 17.10.0 Preview 2.0(8.0.14/8.0.3) with sample project.

@kevinxufei kevinxufei added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed potential-regression This issue described a possible regression on a currently supported version., verification pending labels Apr 2, 2024
@jaosnz-rep jaosnz-rep removed the potential-regression This issue described a possible regression on a currently supported version., verification pending label May 8, 2024
@kevinxufei
Copy link

It has been validated in the Xamarin.Forms project that Android platform works well

@BurkusCat
Copy link
Contributor

BarBackgroundColor does not update dynamically on WinUI. iOS appears fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-navigation NavigationPage fixed-in-9.0.0-rc.2.24503.2 migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants