xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] UWP Backward Navigation shows "B" page's TitleView content when ScrollView is in "A" page's TitleView #10833

Open SunshineSpring666 opened 4 years ago

SunshineSpring666 commented 4 years ago

Description

If "A" page's TitleView contains a ScrollView, when navigating from page "A" to "B", the "B"'s TitleView content is shown. However, if we navigate back by pushing back button, the page "A" doesn't get its TitleView loaded. Instead, it shows page "A"'s content and page "B"'s TitleView.

Steps to Reproduce

  1. Create page "A" and "B" in a Navigation-style App project.
  2. For page "A"'s TitleView, add a ScrollView and some controls within it.
  3. For page "B"'s TitleView, add some controls within it.
  4. Add a button to navigate from "A" to "B".
  5. Build and run, navigate from "A" to "B", then navigate back. See if the TitleView is normally loaded.

Expected Behavior

When navigating back from "B" to "A", "A"'s TitleView should be loaded.

Actual Behavior

"B"'s TitleView is still there.

Basic Information

Workaround

Not known.

Thanks.

samhouts commented 4 years ago

Can you please attach a small project that demonstrates this issue? Thanks!

SunshineSpring666 commented 4 years ago

Hi, please check the following Demo link, when navigating by tapping the listitem to the detail page, the TitleView is normal. However, when navigating back, we need to tap twice the back button, and the TitleView of List Page is not shown. Thanks!

TitleViewScrollBug.zip

SunshineSpring666 commented 4 years ago

Any progress on this issue? I see the bug still exist in the latest release. Thanks.

SunshineSpring666 commented 4 years ago

Hi. I checked this bug on Xamarin.Forms 5.0.0. The issue still exists. Any plan on fixing it? Thanks. Have a nice day.

SunshineSpring666 commented 3 years ago

Since this issue still exist in latest version, I made a simple demo project as attachment to this bug report. ScrollViewInTitleViewNavigation.zip