Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
When setting a Xamarin.Forms.Grid's ColumnDefinitions attributes through the .xaml code, the app crashes on a real Windows Phone 10 device, but it doesn't crash on Android nor iOS (neither on emulators nor real devices) nor on Visual Studio's Windows Phone 8 and 10 emulators.
This is the exception:
Position 13:14. Cannot assign property "ColumnDefinitions": Property does not exists, or is not assignable, or mismatching type between value and property
It also crashes if a RowDefinition is given a name in the .xaml, and again, only on a real device.
This is the whole .xaml:
<?xml version="1.0" encoding="utf-8" ?>
I'm unable to reproduce this with the provided XAML, nor when adding x:Name to a RowDefinition, running on a Lumia device with Windows 10 on it. Can you upload your project/reproduction so we can run it against a device to see if the behavior is different? Are you on a specific version of Forms, and have you checked against latest prerelease builds as well? The last suggestion would be the deletion of bin/obj/package folders as is common. I will just set this to needinfo for the time being.
I won't have access to the computer Xamarin is installed in until Monday, so I won't be able to upload it until then. The solution itself was just the empty cross platform (Xamarin.Forms) template with an added Windows 8 RT project (following https://developer.xamarin.com/guides/xamarin-forms/platform-features/windows/installation/phone/) and the xaml code I posted replacing the default code of MainPage.
I was using Xamarin.Forms 22.214.171.124 for all the projects of the solution (Android, iOS and Windows Phone projects), but I didn't try checking against other releases, although I did try emptying the bin, obj and package with the same results.
Created attachment 23592 [details]
Project with the aforementioned issue
Uploaded the project.
Found the issue, and it was on my side.
I didn't add these lines to the WinPhone project's AssemblyInfo.cs file:
Setting to resolved per the above comment.