Browse Source

2010-04-16 Atsushi Enomoto <[email protected]>

	* XamlType.cs : sort of reverted AllowedContentTypes.
	  msdn explanation is so wrong.


svn path=/trunk/mcs/; revision=155541
Atsushi Eno 15 years ago
parent
commit
c0767aaffc

+ 5 - 0
mcs/class/System.Xaml/System.Xaml/ChangeLog

@@ -1,3 +1,8 @@
+2010-04-16  Atsushi Enomoto  <[email protected]>
+
+	* XamlType.cs : sort of reverted AllowedContentTypes.
+	  msdn explanation is so wrong.
+
 2010-04-16  Atsushi Enomoto  <[email protected]>
 
 	* XamlSchemaContext.cs : implement GetXamlDirective().

+ 5 - 0
mcs/class/System.Xaml/System.Xaml/XamlType.cs

@@ -376,6 +376,10 @@ namespace System.Xaml
 
 		protected virtual IList<XamlType> LookupAllowedContentTypes ()
 		{
+			// the actual implementation is very different from what is documented :(
+			return null;
+
+			/*
 			var l = new List<XamlType> ();
 			if (ContentWrappers != null)
 				l.AddRange (ContentWrappers);
@@ -384,6 +388,7 @@ namespace System.Xaml
 			if (ItemType != null)
 				l.Add (ItemType);
 			return l.Count > 0 ? l : null;
+			*/
 		}
 
 		protected virtual XamlMember LookupAttachableMember (string name)