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 XAML compilation is enabled, an exception is thrown when loading a page that contains an AbsoluteLayout with a child whose LayoutBounds use AutoSize:
System.InvalidOperationException: Cannot convert ".5, .5, AutoSize, AutoSize" into Xamarin.Forms.Rectangle
at Xamarin.Forms.RectangleTypeConverter.ConvertFrom (System.Globalization.CultureInfo culture, System.Object value) [0x000aa] in <filename unknown>:0
at Sample.MainPage.InitializeComponent () [0x0004b] in <filename unknown>:0
at Sample.MainPage..ctor () [0x00008] in /Development/Sample/MainPage.xaml.cs:14
at Sample.App..ctor () [0x00008] in /Development/Sample/Sample.cs:12
at Sample.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00007] in /Development/Sample/iOS/AppDelegate.cs:17
at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string,intptr,intptr)
at UIKit.UIApplication.Main (System.String args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/2506/eb4c1ef1/source/maccore/src/UIKit/UIApplication.cs:77
at UIKit.UIApplication.Main (System.String args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/2506/eb4c1ef1/source/maccore/src/UIKit/UIApplication.cs:61
at Sample.iOS.Application.Main (System.String args) [0x00008] in /Development/Sample/iOS/Main.cs:17
Attached is a sample app that demonstrates the issue.
Created attachment 14293 [details]
To confirm the issue: it happens in my project too.
Forms version: 18.104.22.16890
Workaround: use -1 instead of AutoSize