32 instantiations of 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!)]
18 references to ContentWrapperAttribute
PresentationFramework (6)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
198
case 104: t = () => typeof(
ContentWrapperAttribute
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3109
typeof(System.Windows.Markup.
ContentWrapperAttribute
),
System\Windows\Markup\KnownTypes.cs (1)
5652
case KnownElements.ContentWrapperAttribute: t = typeof(System.Windows.Markup.
ContentWrapperAttribute
); break;
System\Windows\Markup\Primitives\MarkupWriter.cs (3)
1084
if (attributes[typeof(
ContentWrapperAttribute
)] == null)
1091
ContentWrapperAttribute
contentAttribute = attribute as
ContentWrapperAttribute
;
System.Xaml (4)
System\Windows\Markup\ContentWrapperAttribute.cs (1)
46
obj is
ContentWrapperAttribute
other &&
System\Xaml\Schema\Reflector.cs (2)
311
if (attributeType == typeof(
ContentWrapperAttribute
))
313
foreach (
ContentWrapperAttribute
attribute in attributes)
System\Xaml\XamlType.cs (1)
826
List<Type> wrapperTypes = _reflector.GetAllAttributeContents<Type>(typeof(
ContentWrapperAttribute
));
System.Xaml.Tests (8)
System\Windows\Markup\ContentWrapperAttributeTests.cs (6)
16
var
attribute = new ContentWrapperAttribute(contentWrapper!);
22
var
attribute = new ContentWrapperAttribute(typeof(int));
36
public void Equals_Invoke_ReturnsExpected(
ContentWrapperAttribute
attribute, object? other, bool expected)
44
var
attribute = new ContentWrapperAttribute(typeof(int));
51
var
attribute = new ContentWrapperAttribute(null!);
58
var
attribute = new ContentWrapperAttribute(typeof(int));
System\Xaml\XamlTypeTests.cs (2)
1508
ConstructorResult = typeof(
ContentWrapperAttribute
).GetConstructors()[0],
2287
ConstructorResult = typeof(
ContentWrapperAttribute
).GetConstructors()[0],