Bug 23923 - Empty Grid Layout creates XamlParseException
Summary: Empty Grid Layout creates XamlParseException
Status: RESOLVED INVALID
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-10-19 13:58 UTC by Scott Davis
Modified: 2014-10-19 14:22 UTC (History)
3 users (show)

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

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:
Status:
RESOLVED INVALID

Description Scott Davis 2014-10-19 13:58:43 UTC
Setting up a Grid Layout in XAML to contain elements that are only added at run time (creating a placeholder), creates the exception:

Xamarin.Forms.Xaml.XamlParseException: Position 41:22. Property Content is null or is not IEnumerable

It should be possible to setup the layout with rows and columns to reserve space in XAML without the need to put a control in the layout prior to inflation.

This was seen debugging on Android.  Did not verify on other platforms.
Comment 1 Scott Davis 2014-10-19 14:22:20 UTC
Disregard.  

After further testing this was caused by a ScrollView having two children instead of one.  Misleading error message and lack of designer resulted in a bad bug submission. Sorry.