27 instantiations of XamlDeferLoadAttribute
PresentationFramework (1)
System\Windows\TemplateContent.cs (1)
24
[
XamlDeferLoad
(typeof(TemplateContentLoader), typeof(FrameworkElement))]
System.Xaml.Tests (26)
System\Windows\Markup\XamlDeferLoadAttributeTests.cs (6)
16
var attribute = new
XamlDeferLoadAttribute
(loaderType, contentType);
26
Assert.Throws<ArgumentNullException>("loaderType", () => new
XamlDeferLoadAttribute
(null!, typeof(int)));
32
Assert.Throws<ArgumentNullException>("contentType", () => new
XamlDeferLoadAttribute
(typeof(int), null!));
40
var attribute = new
XamlDeferLoadAttribute
(loaderType, contentType);
50
Assert.Throws<ArgumentNullException>("loaderType", () => new
XamlDeferLoadAttribute
(null!, "contentType"));
56
Assert.Throws<ArgumentNullException>("contentType", () => new
XamlDeferLoadAttribute
("loaderType", null!));
System\Xaml\XamlMemberTests.cs (10)
407
GetCustomAttributesAction = (attributeType, inherit) => new object[] { new
XamlDeferLoadAttribute
(typeof(int), typeof(string)) }
429
GetCustomAttributesAction = (attributeType, inherit) => new object[] { new
XamlDeferLoadAttribute
(typeof(int), typeof(string)) }
541
[
XamlDeferLoad
(typeof(int), typeof(string))]
544
[
XamlDeferLoad
("System.Int32", "System.String")]
547
[
XamlDeferLoad
(null!, typeof(string))]
550
[
XamlDeferLoad
(typeof(int), null!)]
553
[
XamlDeferLoad
(null!, "System.String")]
556
[
XamlDeferLoad
("System.Int32", null!)]
559
[
XamlDeferLoad
("NoSuchType", "System.String")]
562
[
XamlDeferLoad
("System.Int32", "NoSuchType")]
System\Xaml\XamlTypeTests.cs (10)
2340
GetCustomAttributesAction = (attributeType, inherit) => new object[] { new
XamlDeferLoadAttribute
(typeof(int), typeof(string)) }
2362
GetCustomAttributesAction = (attributeType, inherit) => new object[] { new
XamlDeferLoadAttribute
(typeof(int), typeof(string)) }
2498
[
XamlDeferLoad
(typeof(int), typeof(string))]
2503
[
XamlDeferLoad
("System.Int32", "System.String")]
2508
[
XamlDeferLoad
(null!, typeof(string))]
2513
[
XamlDeferLoad
(null!, typeof(string))]
2518
[
XamlDeferLoad
(null!, "System.String")]
2523
[
XamlDeferLoad
("System.Int32", null!)]
2528
[
XamlDeferLoad
("NoSuchType", "System.String")]
2533
[
XamlDeferLoad
("System.Int32", "NoSuchType")]
8 references to XamlDeferLoadAttribute
System.Xaml (5)
System\Xaml\Schema\Reflector.cs (3)
274
Debug.Assert(attributeType == typeof(
XamlDeferLoadAttribute
));
276
XamlDeferLoadAttribute
tca = (
XamlDeferLoadAttribute
)attributes[0];
System\Xaml\XamlMember.cs (1)
550
Type[] loaderTypes = _reflector.GetAttributeTypes(typeof(
XamlDeferLoadAttribute
), 2);
System\Xaml\XamlType.cs (1)
863
Type[] loaderTypes = _reflector.GetAttributeTypes(typeof(
XamlDeferLoadAttribute
), 2);
System.Xaml.Tests (3)
System\Windows\Markup\XamlDeferLoadAttributeTests.cs (2)
16
var
attribute = new XamlDeferLoadAttribute(loaderType, contentType);
40
var
attribute = new XamlDeferLoadAttribute(loaderType, contentType);
System\Xaml\XamlTypeTests.cs (1)
2466
ConstructorResult = typeof(
XamlDeferLoadAttribute
).GetConstructors()[0],