1 write to XmlReader
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
126XmlReader = xmlReader;
111 references to XmlReader
PresentationBuildTasks (111)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (2)
85_startingDepth = TokenReader.XmlReader.Depth; 405string xmlNamespace = TokenReader.XmlReader.LookupNamespace(prefix);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (2)
73_startingDepth = TokenReader.XmlReader.Depth; 454string xmlNamespace = TokenReader.XmlReader.LookupNamespace(prefix);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (107)
162return XmlReader.LookupNamespace(prefix); 360Debug.Assert(null != XmlReader); 365XmlReader.Read(); // first time thru get to the first start tag. 378switch (XmlReader.NodeType) 470if (ControllingXamlParser.GetElementType(XmlReader, $"{localName}Extension", 478return ControllingXamlParser.GetElementType(XmlReader, localName, 485if (ControllingXamlParser.GetElementType(XmlReader, localName, 493return ControllingXamlParser.GetElementType(XmlReader, $"{localName}Extension", 535AddNodeToCollection(new XamlDocumentEndNode(LineNumber, LinePosition, XmlReader.Depth)); 604AddNodeToCollection(new XamlUnknownTagEndNode(LineNumber, LinePosition, XmlReader.Depth, 630typeFullName, elementType, serializerType, XmlReader.IsEmptyElement, 639int depth = XmlReader.Depth; 724XamlPropertyComplexEndNode(LineNumber, LinePosition, XmlReader.Depth)); 750LineNumber, LinePosition, XmlReader.Depth, propertyMember, 767LineNumber, LinePosition, XmlReader.Depth, propertyMember, 818XmlReader.Depth, 845LineNumber, LinePosition, XmlReader.Depth, propertyMember, 880LineNumber, LinePosition, XmlReader.Depth, propertyMember, 919AddNodeToCollection(new XamlXmlnsPropertyNode(LineNumber, LinePosition, XmlReader.Depth, 928AddNodeToCollection(new XamlPIMappingNode(LineNumber, LinePosition, XmlReader.Depth, 938AddNodeToCollection(new XamlClrEventNode(LineNumber, LinePosition, XmlReader.Depth, 963new XamlPropertyArrayEndNode(LineNumber, LinePosition, XmlReader.Depth)); 988new XamlPropertyIListEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1013new XamlPropertyIDictionaryEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1033new XamlDefTagNode(LineNumber, LinePosition, XmlReader.Depth, 1034XmlReader.IsEmptyElement, XmlReader, defTagName)); 1051AddNodeToCollection(new XamlDefAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1060AddNodeToCollection(new XamlPresentationOptionsAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1073AddNodeToCollection(new XamlDefAttributeKeyTypeNode(LineNumber, LinePosition, XmlReader.Depth, 1222ThrowException(nameof(SR.ParserEmptyComplexProp), XmlReader.Name); 1235while (readNextNode && XmlReader.Read()) 1237switch (XmlReader.NodeType) 1249string collapsedText = CollapseText(XmlReader.Value, 1271XmlReader.LocalName); 1303XmlReader.Read(); 1320XmlReader.NodeType.ToString()); 1845string namespacePrefix = XmlReader.Prefix; 1850attributeNamespaceUri != XmlReader.LookupNamespace("")) 1944bool isEmptyElement = XmlReader.IsEmptyElement; 2069CompileBamlTag(XmlReader.NodeType, ref endTagHasBeenRead); 2085switch (XmlReader.NodeType) 2091CompileText(XmlReader.NodeType, XmlReader.Value); 2092XmlReader.Read(); // move to the next node. 2097XmlReader.Read(); // move to the next node. 2102ThrowException(nameof(SR.ParserEntityReference), XmlReader.Name); 2106XmlReader.Read(); 2128bool isEmpty = XmlReader.IsEmptyElement; 2134WriteDefTag(XmlReader.Name); 2151CompileText(XmlReader.NodeType, XmlReader.Value); 2164XmlReader.Read(); 2201bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2207string attribName = XmlReader.Name; 2208string attribLocalName = XmlReader.LocalName; 2209string attributeNamespaceUri = XmlReader.LookupNamespace(XmlReader.Prefix); 2210string attribValue = XmlReader.Value; 2273moreAttributes = XmlReader.MoveToNextAttribute(); 2335bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2338string attribName = XmlReader.Name; 2343string attribValue = XmlReader.Value; 2354moreAttributes = XmlReader.MoveToNextAttribute(); 2356XmlReader.MoveToElement(); 2727attribNamespaceURI = XmlReader.LookupNamespace(prefix); 2741attribNamespaceURI = XmlReader.LookupNamespace(""); 2774bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2793string attribLocalName = XmlReader.LocalName; 2794string attribName = XmlReader.Name; 2795string attribPrefix = XmlReader.Prefix; 2796string attribValue = XmlReader.Value; 2927moreAttributes = XmlReader.MoveToNextAttribute(); 2938ArrayList xamlNodes = _extensionParser.CompileDictionaryKeys(complexDefAttributesList, XmlReader.Depth); 2950ArrayList xamlNodes = _extensionParser.CompileAttributes(markupExtensionList, XmlReader.Depth); 3061string valueNamespaceURI = XmlReader.LookupNamespace(prefix); 3571int depth = XmlReader.Depth; 3579string localName = XmlReader.LocalName; 3580string prefix = XmlReader.Prefix; 3581string namespaceURI = XmlReader.NamespaceURI; 3591isEmptyElement = XmlReader.IsEmptyElement; 3803CompileText(XmlReader.NodeType, XmlReader.Value); 3843XmlReader.Read(); 3893string text = XmlReader.ReadInnerXml(); 3967int attributeCount = XmlReader.AttributeCount; 3972if( XmlReader.GetAttribute(DefinitionUid, DefinitionNamespaceURI) != null) 4074bool isEmptyElement = XmlReader.IsEmptyElement; 4268if (XmlReader.AttributeCount > 0) 4275while (XmlReader.MoveToNextAttribute() && 4278if (XmlReader.LocalName == DefinitionUid && 4279XmlReader.NamespaceURI == DefinitionNamespaceURI) 4486string localName = XmlReader.LocalName; 4623int depth = XmlReader.Depth; 4709WriteText(textValue, null, XmlReader.Depth); // Text for IAddChild::AddText() 4769WriteText(textValue, null, XmlReader.Depth); // Text for object/string/IList ContentProperty 4782WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 4800WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 5022WriteText(textValue, null, XmlReader.Depth); // Text for (Complex collection property)::Add() 5114WriteText(textValue, null, XmlReader.Depth); // Text for property IList::Add() 5145WriteText( textValue, null, XmlReader.Depth ); // Text saved for Unknown purposes. 5221if ((XmlReader.EOF) || ((ParseLoopState != ParserState.Uninitialized) && 52220 == XmlReader.Depth && XmlReader.NodeType == XmlNodeType.None)) 5267Debug.Assert(null != XmlReader, "XmlReader is not yet set"); 5269if (XmlReader is XmlCompatibilityReader xmlCompatReader) 5278if (XmlReader is XmlTextReader xmlTextReader)