* ControlBuilder.cs: find the correct naming container even inside
user controls. A corner case of bug #445889.
svn path=/trunk/mcs/; revision=119130
+
+2008-11-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * ControlBuilder.cs: find the correct naming container even inside
+ user controls. A corner case of bug #445889.
+
2008-11-15 Marek Habersack <mhabersack@novell.com>
* INonBindingContainer.cs: added
#endif
Type BindingContainerType {
get {
- ControlBuilder cb = (this is TemplateBuilder) ? this : MyNamingContainer;
+ ControlBuilder cb = (this is TemplateBuilder && !(this is RootBuilder)) ? this : MyNamingContainer;
if (cb == null)
return typeof (Control);