Bug 40932 - Ambiguous call from RelativeLayout.Children.Add() when trying to add content into a XAML File
Summary: Ambiguous call from RelativeLayout.Children.Add() when trying to add content ...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.2.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Samantha Houts [MSFT]
Depends on:
Reported: 2016-05-06 10:43 UTC by C64Gamer
Modified: 2017-06-19 23:22 UTC (History)
5 users (show)

Tags: Xamarin Xamarin.Forms Ambiguous call XAML
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:

Description C64Gamer 2016-05-06 10:43:21 UTC
Button btn = new Button ();
btn.Text = "Debug";
btn.BackgroundColor = Color.Red;

RelativeLayout layout = companyRepro;

<RelativeLayout x:Name="companyRepro"> ...

Error CS0121: The call is ambiguous between the following methods or properties: `Xamarin.Forms.RelativeLayout.IRelativeList<Xamarin.Forms.View>.Add(Xamarin.Forms.View, System.Linq.Expressions.Expression<System.Func<double>>, System.Linq.Expressions.Expression<System.Func<double>>, System.Linq.Expressions.Expression<System.Func<double>>, System.Linq.Expressions.Expression<System.Func<double>>)' and `Xamarin.Forms.RelativeLayout.IRelativeList<Xamarin.Forms.View>.Add(Xamarin.Forms.View, Xamarin.Forms.Constraint, Xamarin.Forms.Constraint, Xamarin.Forms.Constraint, Xamarin.Forms.Constraint)' (CS0121) (QimpApp.iOS)
Comment 1 Paul DiPietro [MSFT] 2016-08-04 04:41:26 UTC
Does this still affect you on the latest stable version, and can you upload a reproduction if so?
Comment 2 Samantha Houts [MSFT] 2017-06-19 23:22:30 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!