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

Delayed Update of Navbar Title and TabBar Background Color in .NET MAUI on Android When Switching Tabs #24568

Closed
IX-OmkarP opened this issue Sep 2, 2024 · 7 comments
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout i/regression This issue described a confirmed regression on a currently supported version migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@IX-OmkarP
Copy link

Description

Issue Description:

I am encountering an issue with delayed updates to the Navbar title and Navbar background color when switching tabs on an Android device in a project that I am migrating from Xamarin.Forms to .NET MAUI.

Problem Details:

  • Expected Behavior:

    • When switching between tabs, the Navbar title and Navbar background color should update immediately to reflect the values assigned to the selected tab.
  • Actual Behavior:

    • When I click on Tab 2, the TabBar background color changes as expected, but the Navbar title and Navbar background color remain as those of Tab 1.
    • Upon switching to Tab 3, the Navbar title and Navbar background color update to the values for Tab 2 instead of those for Tab 3. The updates seem to be delayed by one tab click.
    • This issue does not occur in Xamarin.Forms; the expected behavior is observed in the original Xamarin.Forms implementation.

Additional Information:

  • .NET MAUI Version: 8
  • Android Device : Android

Screenshots:
Screenshots GIF

Steps to Reproduce

  • Create a .NET MAUI project with three tabs.
  • Assign different Navbar titles and background colors for each tab.
  • Run the project on an Android device.
  • Switch between the tabs and observe the Navbar title and background color.

Link to public reproduction project repository

https://github.com/IX-OmkarP/Tabbed_Page_POC

Version with bug

Unknown/Other

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

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

@IX-OmkarP IX-OmkarP added the t/bug Something isn't working label Sep 2, 2024
Copy link
Contributor

github-actions bot commented Sep 2, 2024

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!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ninachen03 ninachen03 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Sep 2, 2024
@ninachen03
Copy link

ninachen03 commented Sep 3, 2024

This issue has been verified using latest Visual Studio 17.12.0 Preview 1.0 (8.0.82 &8.0.40) , Can repro on Android platform. but 17.12.0 Preview 1.0 (8.0.21& 8.0.3) works fine.

@ninachen03 ninachen03 added the i/regression This issue described a confirmed regression on a currently supported version label Sep 3, 2024
@samhouts samhouts added migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert area-controls-shell Shell Navigation, Routes, Tabs, Flyout labels Sep 4, 2024
@kubaflo
Copy link
Contributor

kubaflo commented Sep 5, 2024

Hi, could you please try with the latest nightly build? It seems to be working fine for me

@kubaflo
Copy link
Contributor

kubaflo commented Sep 5, 2024

Screen.Recording.2024-09-05.at.18.01.31.mov

@IX-OmkarP
Copy link
Author

Hi, could you please try with the latest nightly build? It seems to be working fine for me

@kubaflo Thanks for answering! I will try it and let you know if it works for me.

@IX-OmkarP
Copy link
Author

@kubaflo Thank you! It's working with the latest nightly build. Now I just need to wait for the public NuGet package.

@kubaflo kubaflo closed this as completed Sep 9, 2024
@kubaflo
Copy link
Contributor

kubaflo commented Sep 9, 2024

@kubaflo Thank you! It's working with the latest nightly build. Now I just need to wait for the public NuGet package.

Cool!

@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout i/regression This issue described a confirmed regression on a currently supported version migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert 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

No branches or pull requests

4 participants