1 write to XmlReader
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
138XmlReader = xmlReader;
111 references to XmlReader
PresentationBuildTasks (111)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\StyleXamlParser.cs (2)
90_startingDepth = TokenReader.XmlReader.Depth; 410string xmlNamespace = TokenReader.XmlReader.LookupNamespace(prefix);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TemplateXamlParser.cs (2)
77_startingDepth = TokenReader.XmlReader.Depth; 458string xmlNamespace = TokenReader.XmlReader.LookupNamespace(prefix);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (107)
172return XmlReader.LookupNamespace(prefix); 370Debug.Assert(null != XmlReader); 375XmlReader.Read(); // first time thru get to the first start tag. 388switch (XmlReader.NodeType) 480if (ControllingXamlParser.GetElementType(XmlReader, $"{localName}Extension", 488return ControllingXamlParser.GetElementType(XmlReader, localName, 495if (ControllingXamlParser.GetElementType(XmlReader, localName, 503return ControllingXamlParser.GetElementType(XmlReader, $"{localName}Extension", 545AddNodeToCollection(new XamlDocumentEndNode(LineNumber, LinePosition, XmlReader.Depth)); 614AddNodeToCollection(new XamlUnknownTagEndNode(LineNumber, LinePosition, XmlReader.Depth, 640typeFullName, elementType, serializerType, XmlReader.IsEmptyElement, 649int depth = XmlReader.Depth; 734XamlPropertyComplexEndNode(LineNumber, LinePosition, XmlReader.Depth)); 760LineNumber, LinePosition, XmlReader.Depth, propertyMember, 777LineNumber, LinePosition, XmlReader.Depth, propertyMember, 828XmlReader.Depth, 855LineNumber, LinePosition, XmlReader.Depth, propertyMember, 890LineNumber, LinePosition, XmlReader.Depth, propertyMember, 929AddNodeToCollection(new XamlXmlnsPropertyNode(LineNumber, LinePosition, XmlReader.Depth, 938AddNodeToCollection(new XamlPIMappingNode(LineNumber, LinePosition, XmlReader.Depth, 948AddNodeToCollection(new XamlClrEventNode(LineNumber, LinePosition, XmlReader.Depth, 973new XamlPropertyArrayEndNode(LineNumber, LinePosition, XmlReader.Depth)); 998new XamlPropertyIListEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1023new XamlPropertyIDictionaryEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1043new XamlDefTagNode(LineNumber, LinePosition, XmlReader.Depth, 1044XmlReader.IsEmptyElement, XmlReader, defTagName)); 1061AddNodeToCollection(new XamlDefAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1070AddNodeToCollection(new XamlPresentationOptionsAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1083AddNodeToCollection(new XamlDefAttributeKeyTypeNode(LineNumber, LinePosition, XmlReader.Depth, 1232ThrowException(nameof(SR.ParserEmptyComplexProp), XmlReader.Name); 1245while (readNextNode && XmlReader.Read()) 1247switch (XmlReader.NodeType) 1259string collapsedText = CollapseText(XmlReader.Value, 1281XmlReader.LocalName); 1313XmlReader.Read(); 1330XmlReader.NodeType.ToString()); 1856string namespacePrefix = XmlReader.Prefix; 1861attributeNamespaceUri != XmlReader.LookupNamespace("")) 1955bool isEmptyElement = XmlReader.IsEmptyElement; 2076CompileBamlTag(XmlReader.NodeType, ref endTagHasBeenRead); 2092switch (XmlReader.NodeType) 2098CompileText(XmlReader.NodeType, XmlReader.Value); 2099XmlReader.Read(); // move to the next node. 2104XmlReader.Read(); // move to the next node. 2109ThrowException(nameof(SR.ParserEntityReference), XmlReader.Name); 2113XmlReader.Read(); 2135bool isEmpty = XmlReader.IsEmptyElement; 2141WriteDefTag(XmlReader.Name); 2158CompileText(XmlReader.NodeType, XmlReader.Value); 2171XmlReader.Read(); 2208bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2214string attribName = XmlReader.Name; 2215string attribLocalName = XmlReader.LocalName; 2216string attributeNamespaceUri = XmlReader.LookupNamespace(XmlReader.Prefix); 2217string attribValue = XmlReader.Value; 2280moreAttributes = XmlReader.MoveToNextAttribute(); 2342bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2345string attribName = XmlReader.Name; 2350string attribValue = XmlReader.Value; 2361moreAttributes = XmlReader.MoveToNextAttribute(); 2363XmlReader.MoveToElement(); 2734attribNamespaceURI = XmlReader.LookupNamespace(prefix); 2745attribNamespaceURI = XmlReader.LookupNamespace(""); 2778bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2797string attribLocalName = XmlReader.LocalName; 2798string attribName = XmlReader.Name; 2799string attribPrefix = XmlReader.Prefix; 2800string attribValue = XmlReader.Value; 2931moreAttributes = XmlReader.MoveToNextAttribute(); 2942ArrayList xamlNodes = _extensionParser.CompileDictionaryKeys(complexDefAttributesList, XmlReader.Depth); 2954ArrayList xamlNodes = _extensionParser.CompileAttributes(markupExtensionList, XmlReader.Depth); 3065string valueNamespaceURI = XmlReader.LookupNamespace(prefix); 3577int depth = XmlReader.Depth; 3585string localName = XmlReader.LocalName; 3586string prefix = XmlReader.Prefix; 3587string namespaceURI = XmlReader.NamespaceURI; 3597isEmptyElement = XmlReader.IsEmptyElement; 3809CompileText(XmlReader.NodeType, XmlReader.Value); 3849XmlReader.Read(); 3899string text = XmlReader.ReadInnerXml(); 3974int attributeCount = XmlReader.AttributeCount; 3979if( XmlReader.GetAttribute(DefinitionUid, DefinitionNamespaceURI) != null) 4081bool isEmptyElement = XmlReader.IsEmptyElement; 4275if (XmlReader.AttributeCount > 0) 4282while (XmlReader.MoveToNextAttribute() && 4285if (XmlReader.LocalName == DefinitionUid && 4286XmlReader.NamespaceURI == DefinitionNamespaceURI) 4493string localName = XmlReader.LocalName; 4628int depth = XmlReader.Depth; 4714WriteText(textValue, null, XmlReader.Depth); // Text for IAddChild::AddText() 4774WriteText(textValue, null, XmlReader.Depth); // Text for object/string/IList ContentProperty 4787WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 4805WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 5027WriteText(textValue, null, XmlReader.Depth); // Text for (Complex collection property)::Add() 5119WriteText(textValue, null, XmlReader.Depth); // Text for property IList::Add() 5150WriteText( textValue, null, XmlReader.Depth ); // Text saved for Unknown purposes. 5226if ((XmlReader.EOF) || ((ParseLoopState != ParserState.Uninitialized) && 52270 == XmlReader.Depth && XmlReader.NodeType == XmlNodeType.None)) 5273Debug.Assert(null != XmlReader, "XmlReader is not yet set"); 5275XmlCompatibilityReader xmlCompatReader = XmlReader as XmlCompatibilityReader; 5283XmlTextReader xmlTextReader = XmlReader as XmlTextReader;