https://bugzilla.novell.com/show_bug.cgi?id=641170
https://bugzilla.novell.com/show_bug.cgi?id=641170#c0 Summary: Cannot set LayoutParams in LinearLayout (and maybe other views) Classification: Mono Product: MonoDroid Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Class Libraries AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Description of Problem: To set the LayoutParams at a LinearLayout, a property named LayoutParams has been created, but because a inner class named LayoutParams also exists the property becomes inaccesible. The exact error is: Error 3 'LayoutParams': cannot reference a type through an expression; try 'Android.Widget.LinearLayout.LayoutParams' instead Here is a piece of code to reproduce the bug: LinearLayout layout = new LinearLayout(Context); LinearLayout.LayoutParams mParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FillParent, LinearLayout.LayoutParams.FillParent); layout.LayoutParams = mParams; //This line gets highlighted as an error on VS -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
