32 references to ContentWrapperAttribute
PresentationFramework (2)
System\Windows\Documents\InlineCollection.cs (2)
19[ContentWrapper(typeof(Run))] 20[ContentWrapper(typeof(InlineUIContainer))]
System.Xaml.Tests (30)
System\Windows\Markup\ContentWrapperAttributeTests.cs (12)
16var attribute = new ContentWrapperAttribute(contentWrapper!); 22var attribute = new ContentWrapperAttribute(typeof(int)); 24yield return new object?[] { attribute, new ContentWrapperAttribute(typeof(int)), true }; 25yield return new object?[] { attribute, new ContentWrapperAttribute(typeof(string)), false }; 26yield return new object?[] { attribute, new ContentWrapperAttribute(null!), false }; 27yield return new object?[] { new ContentWrapperAttribute(null!), new ContentWrapperAttribute(null!), true }; 28yield return new object?[] { new ContentWrapperAttribute(null!), new ContentWrapperAttribute(typeof(int)), false }; 44var attribute = new ContentWrapperAttribute(typeof(int)); 51var attribute = new ContentWrapperAttribute(null!); 58var attribute = new ContentWrapperAttribute(typeof(int));
System\Xaml\Schema\XamlTypeInvokerTests.cs (6)
392[ContentWrapper(typeof(ClassWithStringContentPropertyAttribute))] 393[ContentWrapper(typeof(ClassWithArrayContentPropertyAttribute))] 394[ContentWrapper(typeof(ClassWithShortContentPropertyAttribute))] 402[ContentWrapper(typeof(ClassWithStringContentPropertyAttribute))] 403[ContentWrapper(typeof(ClassWithArrayContentPropertyAttribute))] 404[ContentWrapper(typeof(ClassWithShortContentPropertyAttribute))]
System\Xaml\XamlTypeTests.cs (12)
1359GetCustomAttributesAction = (attributeType, inherit) => new object[] { new ContentWrapperAttribute(typeof(ClassWithUnknownContentPropertyAttribute)) } 1381GetCustomAttributesAction = (attributeType, inherit) => new object[] { new ContentWrapperAttribute(typeof(int)) } 1483[ContentWrapper(typeof(int))] 1484[ContentWrapper(typeof(ClassWithUnknownContentPropertyAttribute))] 1485[ContentWrapper(typeof(ClassWithKnownContentPropertyAttribute))] 1486[ContentWrapper(typeof(ClassWithKnownContentPropertyAttribute))] 1487[ContentWrapper(typeof(InheritedClassWithContentPropertyAttribute))] 2153GetCustomAttributesAction = (attributeType, inherit) => new object[] { new ContentWrapperAttribute(typeof(int)) } 2175GetCustomAttributesAction = (attributeType, inherit) => new object[] { new ContentWrapperAttribute(typeof(int)) } 2296[ContentWrapper(typeof(int))] 2301[ContentWrapper(typeof(string))] 2306[ContentWrapper(null!)]