23 references to XamlServices
PresentationFramework (7)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (5)
842
XamlServices
.Transform(staticResource.ResourceNodeList.GetReader(), _xamlNodesWriter, false);
1231
XamlServices
.Transform(record.KeyNodeList.GetReader(), _xamlNodesWriter, false);
1267
XamlServices
.Transform(keyRecord.KeyNodeList.GetReader(), _xamlNodesWriter, false);
1964
XamlServices
.Transform(sr.ResourceNodeList.GetReader(), _xamlNodesWriter, false);
2493
XamlServices
.Transform(lookAheadNodesReader, _xamlNodesWriter, false);
System\Windows\ResourceDictionary.cs (1)
1149
System.Xaml.
XamlServices
.Transform(reader, writer);
System\Windows\SystemResources.cs (1)
960
System.Xaml.
XamlServices
.Transform(bamlReader, writer);
System.Xaml.Tests (16)
System\Xaml\XamlServicesTests.cs (16)
16
Assert.Throws<ArgumentNullException>("xaml", () =>
XamlServices
.Parse(null));
22
Assert.Throws<ArgumentNullException>("fileName", () =>
XamlServices
.Load((string)null!));
28
Assert.Throws<ArgumentNullException>("stream", () =>
XamlServices
.Load((Stream)null!));
34
Assert.Throws<ArgumentNullException>("textReader", () =>
XamlServices
.Load((TextReader)null!));
40
Assert.Throws<ArgumentNullException>("xmlReader", () =>
XamlServices
.Load((XmlReader)null!));
46
Assert.Throws<ArgumentNullException>("xamlReader", () =>
XamlServices
.Load((XamlReader)null!));
52
Assert.Throws<ArgumentNullException>("xamlReader", () =>
XamlServices
.Transform((XamlReader)null!, new XamlObjectWriter(new XamlSchemaContext())));
53
Assert.Throws<ArgumentNullException>("xamlReader", () =>
XamlServices
.Transform((XamlReader)null!, new XamlObjectWriter(new XamlSchemaContext()), false));
59
Assert.Throws<ArgumentNullException>("xamlWriter", () =>
XamlServices
.Transform(new XamlObjectReader(1), null));
60
Assert.Throws<ArgumentNullException>("xamlWriter", () =>
XamlServices
.Transform(new XamlObjectReader(1), null, false));
66
Assert.Throws<ArgumentNullException>("fileName", () =>
XamlServices
.Save((string)null!, 1));
72
Assert.Throws<ArgumentException>("fileName", () =>
XamlServices
.Save("", 1));
78
Assert.Throws<ArgumentNullException>("stream", () =>
XamlServices
.Save((Stream)null!, 1));
84
Assert.Throws<ArgumentNullException>("writer", () =>
XamlServices
.Save((TextWriter)null!, 1));
90
Assert.Throws<ArgumentNullException>("writer", () =>
XamlServices
.Save((XmlWriter)null!, 1));
96
Assert.Throws<ArgumentNullException>("writer", () =>
XamlServices
.Save((XamlWriter)null!, 1));