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); 356Debug.Assert(null != XmlReader); 361XmlReader.Read(); // first time thru get to the first start tag. 374switch (XmlReader.NodeType) 466if (ControllingXamlParser.GetElementType(XmlReader, $"{localName}Extension", 474return ControllingXamlParser.GetElementType(XmlReader, localName, 481if (ControllingXamlParser.GetElementType(XmlReader, localName, 489return ControllingXamlParser.GetElementType(XmlReader, $"{localName}Extension", 531AddNodeToCollection(new XamlDocumentEndNode(LineNumber, LinePosition, XmlReader.Depth)); 600AddNodeToCollection(new XamlUnknownTagEndNode(LineNumber, LinePosition, XmlReader.Depth, 626typeFullName, elementType, serializerType, XmlReader.IsEmptyElement, 635int depth = XmlReader.Depth; 720XamlPropertyComplexEndNode(LineNumber, LinePosition, XmlReader.Depth)); 746LineNumber, LinePosition, XmlReader.Depth, propertyMember, 763LineNumber, LinePosition, XmlReader.Depth, propertyMember, 814XmlReader.Depth, 841LineNumber, LinePosition, XmlReader.Depth, propertyMember, 876LineNumber, LinePosition, XmlReader.Depth, propertyMember, 915AddNodeToCollection(new XamlXmlnsPropertyNode(LineNumber, LinePosition, XmlReader.Depth, 924AddNodeToCollection(new XamlPIMappingNode(LineNumber, LinePosition, XmlReader.Depth, 934AddNodeToCollection(new XamlClrEventNode(LineNumber, LinePosition, XmlReader.Depth, 959new XamlPropertyArrayEndNode(LineNumber, LinePosition, XmlReader.Depth)); 984new XamlPropertyIListEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1009new XamlPropertyIDictionaryEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1029new XamlDefTagNode(LineNumber, LinePosition, XmlReader.Depth, 1030XmlReader.IsEmptyElement, XmlReader, defTagName)); 1047AddNodeToCollection(new XamlDefAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1056AddNodeToCollection(new XamlPresentationOptionsAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1069AddNodeToCollection(new XamlDefAttributeKeyTypeNode(LineNumber, LinePosition, XmlReader.Depth, 1218ThrowException(nameof(SR.ParserEmptyComplexProp), XmlReader.Name); 1231while (readNextNode && XmlReader.Read()) 1233switch (XmlReader.NodeType) 1245string collapsedText = CollapseText(XmlReader.Value, 1267XmlReader.LocalName); 1299XmlReader.Read(); 1316XmlReader.NodeType.ToString()); 1841string namespacePrefix = XmlReader.Prefix; 1846attributeNamespaceUri != XmlReader.LookupNamespace("")) 1940bool isEmptyElement = XmlReader.IsEmptyElement; 2065CompileBamlTag(XmlReader.NodeType, ref endTagHasBeenRead); 2081switch (XmlReader.NodeType) 2087CompileText(XmlReader.NodeType, XmlReader.Value); 2088XmlReader.Read(); // move to the next node. 2093XmlReader.Read(); // move to the next node. 2098ThrowException(nameof(SR.ParserEntityReference), XmlReader.Name); 2102XmlReader.Read(); 2124bool isEmpty = XmlReader.IsEmptyElement; 2130WriteDefTag(XmlReader.Name); 2147CompileText(XmlReader.NodeType, XmlReader.Value); 2160XmlReader.Read(); 2197bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2203string attribName = XmlReader.Name; 2204string attribLocalName = XmlReader.LocalName; 2205string attributeNamespaceUri = XmlReader.LookupNamespace(XmlReader.Prefix); 2206string attribValue = XmlReader.Value; 2269moreAttributes = XmlReader.MoveToNextAttribute(); 2331bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2334string attribName = XmlReader.Name; 2339string attribValue = XmlReader.Value; 2350moreAttributes = XmlReader.MoveToNextAttribute(); 2352XmlReader.MoveToElement(); 2723attribNamespaceURI = XmlReader.LookupNamespace(prefix); 2737attribNamespaceURI = XmlReader.LookupNamespace(""); 2770bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2789string attribLocalName = XmlReader.LocalName; 2790string attribName = XmlReader.Name; 2791string attribPrefix = XmlReader.Prefix; 2792string attribValue = XmlReader.Value; 2923moreAttributes = XmlReader.MoveToNextAttribute(); 2934ArrayList xamlNodes = _extensionParser.CompileDictionaryKeys(complexDefAttributesList, XmlReader.Depth); 2946ArrayList xamlNodes = _extensionParser.CompileAttributes(markupExtensionList, XmlReader.Depth); 3057string valueNamespaceURI = XmlReader.LookupNamespace(prefix); 3567int depth = XmlReader.Depth; 3575string localName = XmlReader.LocalName; 3576string prefix = XmlReader.Prefix; 3577string namespaceURI = XmlReader.NamespaceURI; 3587isEmptyElement = XmlReader.IsEmptyElement; 3799CompileText(XmlReader.NodeType, XmlReader.Value); 3839XmlReader.Read(); 3889string text = XmlReader.ReadInnerXml(); 3963int attributeCount = XmlReader.AttributeCount; 3968if( XmlReader.GetAttribute(DefinitionUid, DefinitionNamespaceURI) != null) 4070bool isEmptyElement = XmlReader.IsEmptyElement; 4264if (XmlReader.AttributeCount > 0) 4271while (XmlReader.MoveToNextAttribute() && 4274if (XmlReader.LocalName == DefinitionUid && 4275XmlReader.NamespaceURI == DefinitionNamespaceURI) 4481string localName = XmlReader.LocalName; 4618int depth = XmlReader.Depth; 4704WriteText(textValue, null, XmlReader.Depth); // Text for IAddChild::AddText() 4764WriteText(textValue, null, XmlReader.Depth); // Text for object/string/IList ContentProperty 4777WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 4795WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 5017WriteText(textValue, null, XmlReader.Depth); // Text for (Complex collection property)::Add() 5109WriteText(textValue, null, XmlReader.Depth); // Text for property IList::Add() 5140WriteText( textValue, null, XmlReader.Depth ); // Text saved for Unknown purposes. 5216if ((XmlReader.EOF) || ((ParseLoopState != ParserState.Uninitialized) && 52170 == XmlReader.Depth && XmlReader.NodeType == XmlNodeType.None)) 5262Debug.Assert(null != XmlReader, "XmlReader is not yet set"); 5264if (XmlReader is XmlCompatibilityReader xmlCompatReader) 5273if (XmlReader is XmlTextReader xmlTextReader)