Bug 41471 - [WP] Image Inside A Frame Causes Layout Cycle
Summary: [WP] Image Inside A Frame Causes Layout Cycle
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-06-02 23:08 UTC by Jimmy [MSFT]
Modified: 2016-07-11 23:21 UTC (History)
2 users (show)

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

repro solution (131.33 KB, application/x-zip-compressed)
2016-06-02 23:08 UTC, Jimmy [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 for Bug 41471 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Jimmy [MSFT] 2016-06-02 23:08:04 UTC
Created attachment 16182 [details]
repro solution

### Overview
In a WP8.1 Silverlight app, having an Image inside a Frame will cause a "Layout cycle detected" exception to be thrown.

### Steps to Reproduce 
1. Run the WP8.1 Silverlight project in the attached repro

### Expected Results
The app will display the image on the page. You can run the WP 8.1 RT project also in the repro to see this result.

### Actual Results
The app will crash with a "Layout cycle detected" exception

### Environment Info
I was able to reproduce the issue with the latest stable and pre-release Forms versions.

### Possible Workaround
Placing the Image inside a StackLayout and making the layout the Frame's content did not cause the issue. So for example:

  <Image />