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)
16
var attribute = new
ContentWrapperAttribute
(contentWrapper!);
22
var attribute = new
ContentWrapperAttribute
(typeof(int));
24
yield return new object?[] { attribute, new
ContentWrapperAttribute
(typeof(int)), true };
25
yield return new object?[] { attribute, new
ContentWrapperAttribute
(typeof(string)), false };
26
yield return new object?[] { attribute, new
ContentWrapperAttribute
(null!), false };
27
yield return new object?[] { new
ContentWrapperAttribute
(null!), new
ContentWrapperAttribute
(null!), true };
28
yield return new object?[] { new
ContentWrapperAttribute
(null!), new
ContentWrapperAttribute
(typeof(int)), false };
44
var attribute = new
ContentWrapperAttribute
(typeof(int));
51
var attribute = new
ContentWrapperAttribute
(null!);
58
var 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)
1359
GetCustomAttributesAction = (attributeType, inherit) => new object[] { new
ContentWrapperAttribute
(typeof(ClassWithUnknownContentPropertyAttribute)) }
1381
GetCustomAttributesAction = (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))]
2153
GetCustomAttributesAction = (attributeType, inherit) => new object[] { new
ContentWrapperAttribute
(typeof(int)) }
2175
GetCustomAttributesAction = (attributeType, inherit) => new object[] { new
ContentWrapperAttribute
(typeof(int)) }
2296
[
ContentWrapper
(typeof(int))]
2301
[
ContentWrapper
(typeof(string))]
2306
[
ContentWrapper
(null!)]