Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.
Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.
Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.
Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.
Run Sample for Tabs Android Forms. Click Push Page2. Click Push Tab Tab Message: Tab2Page2 Appear (OK) TabPage1 Appear (OK) TabPage1 Disappear (WHY? wrong) TabPage1 Appear (WHY 2 times?) Tabpage2 Disappear (WHY?) What I think should happen. TabPage1 Appear TabPage2 Appear Referenced bug: https://bugzilla.xamarin.com/show_bug.cgi?id=44160
Created attachment 17427 [details] sample
created new bug for TabPage onAppear and OnDisappear.
Also referencing: https://bugzilla.xamarin.com/show_bug.cgi?id=43774
I added some discussion here: https://github.com/xamarin/Xamarin.Forms/pull/348
What I think should happen: TabPage1 Appear. Just like in iOS...
Marius: The best solution be just TabPage1 to appear. Navigate to Tab2, TabPage2 appears. unsure how Xamarin overlooked testing on this.
*** Bug 46914 has been marked as a duplicate of this bug. ***
There is an open PR for this: https://github.com/xamarin/Xamarin.Forms/pull/354
*** Bug 49281 has been marked as a duplicate of this bug. ***
*** Bug 51574 has been marked as a duplicate of this bug. ***
*** Bug 58012 has been marked as a duplicate of this bug. ***
Hi Guys, It is crazy, i posted a solution since last may 2017 on the PR 354. It is seems nobody want really solve this problem. If you comment lines 37 to 51 in FragmentContainer.cs, the events appears all normal.... public override bool UserVisibleHint { get { return base.UserVisibleHint; } set { base.UserVisibleHint = value; // if (_isVisible == value) // return; // _isVisible = value; // if (_isVisible.Value) // PageController?.SendAppearing(); // else // PageController?.SendDisappearing(); } } In facts, if you comment thoses lines (UserVisibleHint), methods below, do their jobs. public override void OnHiddenChanged(bool hidden) { base.OnHiddenChanged(hidden); if (Page == null) return; if (hidden) PageController?.SendDisappearing(); else PageController?.SendAppearing(); } public override void OnPause() { bool shouldSendEvent = Application.Current.OnThisPlatform().GetSendDisappearingEventOnPause(); if (shouldSendEvent) SendLifecycleEvent(false); base.OnPause(); } public override void OnResume() { bool shouldSendEvent = Application.Current.OnThisPlatform().GetSendAppearingEventOnResume(); if (shouldSendEvent) SendLifecycleEvent(true); base.OnResume(); } Can someone confirm that ? Best regards, Paulin
Still happening on Xamarin.Forms 2.4.0.91020. Highly frustrating.
Geoff, I posted a solution, but it's seem that nobody want to test it ....
i have the same problem
Migrated to https://github.com/xamarin/Xamarin.Forms/issues/1438 Please subscribe to that issue for future updates.
Hi Andrew i updated to 2.5.0 the latest stable and the only issue i see is TabPage1 does fire Appearing the 1st time.