You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
In the attached reproduction project, there's a Xamarin.Forms Shell application created with the VS for mac template. I adjusted the "Browse" Tab to contain 2 subtabs so we get a top tab bar. The ItemsPage has two Shell properties set like this: Shell.TabBarBackgroundColor="Red" Shell.BackgroundColor="Red"
The ItemDetailPage (reached when clicking one of the items) does not set any Shell properties. Now when we click an item to show the ItemDetailPage in Modal presentation style, and immediately change the tab from the top tab bar, we see that Shell's top bar is changing its background color to the default blue color of xamarin. This behavior is attached as a gif because it's hard to reproduce, there's only a small time frame to change the tab.
Steps to Reproduce
Download and unzip the attached project.
Build and deploy.
Switch to the "Tabs" tab from the bottom tab bar.
Tap an item
Switch the tab before the item detail page is pushed
Close the item detail page
Expected Behavior
The Shells top bar should stay red and not switch to the default blue color.
Actual Behavior
The Shells top bar is changing to the default blue color.
Description
In the attached reproduction project, there's a Xamarin.Forms Shell application created with the VS for mac template. I adjusted the "Browse" Tab to contain 2 subtabs so we get a top tab bar. The ItemsPage has two Shell properties set like this:
Shell.TabBarBackgroundColor="Red"
Shell.BackgroundColor="Red"
The ItemDetailPage (reached when clicking one of the items) does not set any Shell properties. Now when we click an item to show the ItemDetailPage in Modal presentation style, and immediately change the tab from the top tab bar, we see that Shell's top bar is changing its background color to the default blue color of xamarin. This behavior is attached as a gif because it's hard to reproduce, there's only a small time frame to change the tab.
Steps to Reproduce
Expected Behavior
The Shells top bar should stay red and not switch to the default blue color.
Actual Behavior
The Shells top bar is changing to the default blue color.
Basic Information
Environment
Show/Hide Visual Studio info
Screenshots
ShellTopBarIssue.mov
Reproduction Link
ShellTopBarIssue.zip
Workaround
One possible solution:
Every content page which is pushed modally needs to set the Shell.BackgroundColor & Shell.TabBarBackgroundColor properties.
The text was updated successfully, but these errors were encountered: