1 write to XmlReader
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
125XmlReader = xmlReader;
111 references to XmlReader
PresentationBuildTasks (111)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (2)
84_startingDepth = TokenReader.XmlReader.Depth; 404string xmlNamespace = TokenReader.XmlReader.LookupNamespace(prefix);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (2)
72_startingDepth = TokenReader.XmlReader.Depth; 453string xmlNamespace = TokenReader.XmlReader.LookupNamespace(prefix);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (107)
161return XmlReader.LookupNamespace(prefix); 359Debug.Assert(null != XmlReader); 364XmlReader.Read(); // first time thru get to the first start tag. 377switch (XmlReader.NodeType) 469if (ControllingXamlParser.GetElementType(XmlReader, $"{localName}Extension", 477return ControllingXamlParser.GetElementType(XmlReader, localName, 484if (ControllingXamlParser.GetElementType(XmlReader, localName, 492return ControllingXamlParser.GetElementType(XmlReader, $"{localName}Extension", 534AddNodeToCollection(new XamlDocumentEndNode(LineNumber, LinePosition, XmlReader.Depth)); 603AddNodeToCollection(new XamlUnknownTagEndNode(LineNumber, LinePosition, XmlReader.Depth, 629typeFullName, elementType, serializerType, XmlReader.IsEmptyElement, 638int depth = XmlReader.Depth; 723XamlPropertyComplexEndNode(LineNumber, LinePosition, XmlReader.Depth)); 749LineNumber, LinePosition, XmlReader.Depth, propertyMember, 766LineNumber, LinePosition, XmlReader.Depth, propertyMember, 817XmlReader.Depth, 844LineNumber, LinePosition, XmlReader.Depth, propertyMember, 879LineNumber, LinePosition, XmlReader.Depth, propertyMember, 918AddNodeToCollection(new XamlXmlnsPropertyNode(LineNumber, LinePosition, XmlReader.Depth, 927AddNodeToCollection(new XamlPIMappingNode(LineNumber, LinePosition, XmlReader.Depth, 937AddNodeToCollection(new XamlClrEventNode(LineNumber, LinePosition, XmlReader.Depth, 962new XamlPropertyArrayEndNode(LineNumber, LinePosition, XmlReader.Depth)); 987new XamlPropertyIListEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1012new XamlPropertyIDictionaryEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1032new XamlDefTagNode(LineNumber, LinePosition, XmlReader.Depth, 1033XmlReader.IsEmptyElement, XmlReader, defTagName)); 1050AddNodeToCollection(new XamlDefAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1059AddNodeToCollection(new XamlPresentationOptionsAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1072AddNodeToCollection(new XamlDefAttributeKeyTypeNode(LineNumber, LinePosition, XmlReader.Depth, 1221ThrowException(nameof(SR.ParserEmptyComplexProp), XmlReader.Name); 1234while (readNextNode && XmlReader.Read()) 1236switch (XmlReader.NodeType) 1248string collapsedText = CollapseText(XmlReader.Value, 1270XmlReader.LocalName); 1302XmlReader.Read(); 1319XmlReader.NodeType.ToString()); 1844string namespacePrefix = XmlReader.Prefix; 1849attributeNamespaceUri != XmlReader.LookupNamespace("")) 1943bool isEmptyElement = XmlReader.IsEmptyElement; 2068CompileBamlTag(XmlReader.NodeType, ref endTagHasBeenRead); 2084switch (XmlReader.NodeType) 2090CompileText(XmlReader.NodeType, XmlReader.Value); 2091XmlReader.Read(); // move to the next node. 2096XmlReader.Read(); // move to the next node. 2101ThrowException(nameof(SR.ParserEntityReference), XmlReader.Name); 2105XmlReader.Read(); 2127bool isEmpty = XmlReader.IsEmptyElement; 2133WriteDefTag(XmlReader.Name); 2150CompileText(XmlReader.NodeType, XmlReader.Value); 2163XmlReader.Read(); 2200bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2206string attribName = XmlReader.Name; 2207string attribLocalName = XmlReader.LocalName; 2208string attributeNamespaceUri = XmlReader.LookupNamespace(XmlReader.Prefix); 2209string attribValue = XmlReader.Value; 2272moreAttributes = XmlReader.MoveToNextAttribute(); 2334bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2337string attribName = XmlReader.Name; 2342string attribValue = XmlReader.Value; 2353moreAttributes = XmlReader.MoveToNextAttribute(); 2355XmlReader.MoveToElement(); 2726attribNamespaceURI = XmlReader.LookupNamespace(prefix); 2740attribNamespaceURI = XmlReader.LookupNamespace(""); 2773bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2792string attribLocalName = XmlReader.LocalName; 2793string attribName = XmlReader.Name; 2794string attribPrefix = XmlReader.Prefix; 2795string attribValue = XmlReader.Value; 2926moreAttributes = XmlReader.MoveToNextAttribute(); 2937ArrayList xamlNodes = _extensionParser.CompileDictionaryKeys(complexDefAttributesList, XmlReader.Depth); 2949ArrayList xamlNodes = _extensionParser.CompileAttributes(markupExtensionList, XmlReader.Depth); 3060string valueNamespaceURI = XmlReader.LookupNamespace(prefix); 3570int depth = XmlReader.Depth; 3578string localName = XmlReader.LocalName; 3579string prefix = XmlReader.Prefix; 3580string namespaceURI = XmlReader.NamespaceURI; 3590isEmptyElement = XmlReader.IsEmptyElement; 3802CompileText(XmlReader.NodeType, XmlReader.Value); 3842XmlReader.Read(); 3892string text = XmlReader.ReadInnerXml(); 3966int attributeCount = XmlReader.AttributeCount; 3971if( XmlReader.GetAttribute(DefinitionUid, DefinitionNamespaceURI) != null) 4073bool isEmptyElement = XmlReader.IsEmptyElement; 4267if (XmlReader.AttributeCount > 0) 4274while (XmlReader.MoveToNextAttribute() && 4277if (XmlReader.LocalName == DefinitionUid && 4278XmlReader.NamespaceURI == DefinitionNamespaceURI) 4484string localName = XmlReader.LocalName; 4621int depth = XmlReader.Depth; 4707WriteText(textValue, null, XmlReader.Depth); // Text for IAddChild::AddText() 4767WriteText(textValue, null, XmlReader.Depth); // Text for object/string/IList ContentProperty 4780WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 4798WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 5020WriteText(textValue, null, XmlReader.Depth); // Text for (Complex collection property)::Add() 5112WriteText(textValue, null, XmlReader.Depth); // Text for property IList::Add() 5143WriteText( textValue, null, XmlReader.Depth ); // Text saved for Unknown purposes. 5219if ((XmlReader.EOF) || ((ParseLoopState != ParserState.Uninitialized) && 52200 == XmlReader.Depth && XmlReader.NodeType == XmlNodeType.None)) 5265Debug.Assert(null != XmlReader, "XmlReader is not yet set"); 5267if (XmlReader is XmlCompatibilityReader xmlCompatReader) 5276if (XmlReader is XmlTextReader xmlTextReader)