Bug 33701 - Setting the CurrentPage of a CarouselPage causes no content to render on child page
Summary: Setting the CurrentPage of a CarouselPage causes no content to render on chil...
Status: RESOLVED DUPLICATE of bug 29257
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.5.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Rui Marinho
Depends on:
Reported: 2015-09-04 17:56 UTC by John Miller [MSFT]
Modified: 2015-10-14 13:12 UTC (History)
5 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Test Case (28.68 KB, application/zip)
2015-09-04 17:56 UTC, John Miller [MSFT]

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.

Related Links:

Description John Miller [MSFT] 2015-09-04 17:56:44 UTC
Created attachment 12781 [details]
Test Case


   When a CarouselPage has >= 4 children pages, setting the CurrentPage causes that child page to render no content. 
   For example, if the CarouselPage has 4 children pages, setting CurrentPage = carouselPage.Children[1]; will cause that page to render no content. Every other valid index works (0, 2, 3). When it has 5 children pages, index 1 and 2 (pages 2 and 3) do not render content, etc.

**Steps to Reproduce:**

   1. Run the attached sample on an Android simulator
   2. Press the "Show Page 2" button.

   To run subsequent tests, relaunch the app. Once you complete step #2 above and then navigate back, subsequent taps of the button will work. It seems that the first time it does not work. 

**Actual Results:**

   The page is shown, but there is no content. 

**Expected Results:**

   You should see a label with the text "Page 2". 

**Build Date & Platform:**

   XF 1.5.0-pre3

**Additional Information:**

   This works fine on iOS. 

   After step #2 above, if you swipe left and right, you will see the other pages have loaded OK. If you swipe back to this Page 2, it will render the content now.

   Relaunch the app to reset the test. You can try every other button individually to see that the content is loaded. It's only when the page is at index 1 of the children (assuming 4 pages). That "bad" index changes as you add more pages to the children.
Comment 1 Kent Green [MSFT] 2015-09-07 23:51:22 UTC
Using the attached sample I was able to reproduce the issue.

Build information:
=== Xamarin Studio ===

Version 5.9.5 (build 10)
Installation UUID: 8ef63a7c-1b18-40de-a334-7f78777fcb55
	Mono 4.0.3 ((detached/d6946b4)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400030020

=== Apple Developer Tools ===

Xcode 7.0 (8208.9)
Build 7A192o

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 2c66d2f
Branch: master
Build date: 2015-08-04 13:52:25-0400

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/kentgreen/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
Java SDK: /usr
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 509050010
Git revision: 48d16bc4f12ce3938964fc7c3d72fdc6887ad4ad
Build date: 2015-08-18 16:55:24-04
Xamarin addins: c2d51b360ad9f59e689046d47030df27de28f94a

=== Operating System ===

Mac OS X 10.10.5
Darwin Kents-MBP 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
Comment 2 Rui Marinho 2015-10-14 13:12:44 UTC

*** This bug has been marked as a duplicate of bug 29257 ***