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