Looking at the MainPage.xaml, it has only 1 button, from which the click will navigate to the next page (Shell.Current.GotoAsync). The navigation bar also has the expected background color.
Looking at the Page2.xaml, it also only has only 1 button, from which the click will navigate to the page3. The navigation bar also has the expected background color, which is difference from the main page
Looking at the Page3.xaml, the navigation bar also has the expected background color, which is difference from the main page.
So far every page has its own navigation bar background color. But when I pop back one page, (from page 3 -> 2), the navigation bar background color, stays the same as page 3. When popping back to the root (main page), the navigation bar background color, is the still the same as page 3. When I go to page 2 again, then the correct navigation bar background color is visible.
Expected Behavior
Expected when popping back a page, (for example from page 3 -> 2), that the page 2 navigation bar background color is seen.
Actual Behavior
When popping back a page (page 3 -> 2), the navigation bar background color from page 3 is still visible. When going from page 2 -> 3, than the correct page 3 background color is visible.
Description
Interested in Xamarin.Forms Shell, I created an playground solution, and started playing around, with the Xamarin Shell documentation at hand.
The Shell structure was created from Visual Studio 2019 on the Mac, by using the Solution wizard.
In the AppShell.xaml the following simple structure was defined:
So only a single ContentPage was created.
Looking at the MainPage.xaml, it has only 1 button, from which the click will navigate to the next page (Shell.Current.GotoAsync). The navigation bar also has the expected background color.
Looking at the Page2.xaml, it also only has only 1 button, from which the click will navigate to the page3. The navigation bar also has the expected background color, which is difference from the main page
Looking at the Page3.xaml, the navigation bar also has the expected background color, which is difference from the main page.
So far every page has its own navigation bar background color. But when I pop back one page, (from page 3 -> 2), the navigation bar background color, stays the same as page 3. When popping back to the root (main page), the navigation bar background color, is the still the same as page 3. When I go to page 2 again, then the correct navigation bar background color is visible.
Expected Behavior
Expected when popping back a page, (for example from page 3 -> 2), that the page 2 navigation bar background color is seen.
Actual Behavior
When popping back a page (page 3 -> 2), the navigation bar background color from page 3 is still visible. When going from page 2 -> 3, than the correct page 3 background color is visible.
Basic Information
Version with issue: Xamarin.Forms 4.1.0.618606
IDE: Visual Studio for Mac 2019 (8.2.2)
Platform Target Frameworks:
Nuget Packages: