1 write to XmlReader
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
132XmlReader = 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)
166return XmlReader.LookupNamespace(prefix); 364Debug.Assert(null != XmlReader); 369XmlReader.Read(); // first time thru get to the first start tag. 382switch (XmlReader.NodeType) 474if (ControllingXamlParser.GetElementType(XmlReader, $"{localName}Extension", 482return ControllingXamlParser.GetElementType(XmlReader, localName, 489if (ControllingXamlParser.GetElementType(XmlReader, localName, 497return ControllingXamlParser.GetElementType(XmlReader, $"{localName}Extension", 539AddNodeToCollection(new XamlDocumentEndNode(LineNumber, LinePosition, XmlReader.Depth)); 608AddNodeToCollection(new XamlUnknownTagEndNode(LineNumber, LinePosition, XmlReader.Depth, 634typeFullName, elementType, serializerType, XmlReader.IsEmptyElement, 643int depth = XmlReader.Depth; 728XamlPropertyComplexEndNode(LineNumber, LinePosition, XmlReader.Depth)); 754LineNumber, LinePosition, XmlReader.Depth, propertyMember, 771LineNumber, LinePosition, XmlReader.Depth, propertyMember, 822XmlReader.Depth, 849LineNumber, LinePosition, XmlReader.Depth, propertyMember, 884LineNumber, LinePosition, XmlReader.Depth, propertyMember, 923AddNodeToCollection(new XamlXmlnsPropertyNode(LineNumber, LinePosition, XmlReader.Depth, 932AddNodeToCollection(new XamlPIMappingNode(LineNumber, LinePosition, XmlReader.Depth, 942AddNodeToCollection(new XamlClrEventNode(LineNumber, LinePosition, XmlReader.Depth, 967new XamlPropertyArrayEndNode(LineNumber, LinePosition, XmlReader.Depth)); 992new XamlPropertyIListEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1017new XamlPropertyIDictionaryEndNode(LineNumber, LinePosition, XmlReader.Depth)); 1037new XamlDefTagNode(LineNumber, LinePosition, XmlReader.Depth, 1038XmlReader.IsEmptyElement, XmlReader, defTagName)); 1055AddNodeToCollection(new XamlDefAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1064AddNodeToCollection(new XamlPresentationOptionsAttributeNode(LineNumber, LinePosition, XmlReader.Depth, 1077AddNodeToCollection(new XamlDefAttributeKeyTypeNode(LineNumber, LinePosition, XmlReader.Depth, 1226ThrowException(nameof(SR.ParserEmptyComplexProp), XmlReader.Name); 1239while (readNextNode && XmlReader.Read()) 1241switch (XmlReader.NodeType) 1253string collapsedText = CollapseText(XmlReader.Value, 1275XmlReader.LocalName); 1307XmlReader.Read(); 1324XmlReader.NodeType.ToString()); 1850string namespacePrefix = XmlReader.Prefix; 1855attributeNamespaceUri != XmlReader.LookupNamespace("")) 1949bool isEmptyElement = XmlReader.IsEmptyElement; 2070CompileBamlTag(XmlReader.NodeType, ref endTagHasBeenRead); 2086switch (XmlReader.NodeType) 2092CompileText(XmlReader.NodeType, XmlReader.Value); 2093XmlReader.Read(); // move to the next node. 2098XmlReader.Read(); // move to the next node. 2103ThrowException(nameof(SR.ParserEntityReference), XmlReader.Name); 2107XmlReader.Read(); 2129bool isEmpty = XmlReader.IsEmptyElement; 2135WriteDefTag(XmlReader.Name); 2152CompileText(XmlReader.NodeType, XmlReader.Value); 2165XmlReader.Read(); 2202bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2208string attribName = XmlReader.Name; 2209string attribLocalName = XmlReader.LocalName; 2210string attributeNamespaceUri = XmlReader.LookupNamespace(XmlReader.Prefix); 2211string attribValue = XmlReader.Value; 2274moreAttributes = XmlReader.MoveToNextAttribute(); 2336bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2339string attribName = XmlReader.Name; 2344string attribValue = XmlReader.Value; 2355moreAttributes = XmlReader.MoveToNextAttribute(); 2357XmlReader.MoveToElement(); 2728attribNamespaceURI = XmlReader.LookupNamespace(prefix); 2739attribNamespaceURI = XmlReader.LookupNamespace(""); 2772bool moreAttributes = XmlReader.MoveToFirstAttribute(); 2791string attribLocalName = XmlReader.LocalName; 2792string attribName = XmlReader.Name; 2793string attribPrefix = XmlReader.Prefix; 2794string attribValue = XmlReader.Value; 2925moreAttributes = XmlReader.MoveToNextAttribute(); 2936ArrayList xamlNodes = _extensionParser.CompileDictionaryKeys(complexDefAttributesList, XmlReader.Depth); 2948ArrayList xamlNodes = _extensionParser.CompileAttributes(markupExtensionList, XmlReader.Depth); 3059string 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(); 3968int attributeCount = XmlReader.AttributeCount; 3973if( XmlReader.GetAttribute(DefinitionUid, DefinitionNamespaceURI) != null) 4075bool isEmptyElement = XmlReader.IsEmptyElement; 4269if (XmlReader.AttributeCount > 0) 4276while (XmlReader.MoveToNextAttribute() && 4279if (XmlReader.LocalName == DefinitionUid && 4280XmlReader.NamespaceURI == DefinitionNamespaceURI) 4487string localName = XmlReader.LocalName; 4622int depth = XmlReader.Depth; 4708WriteText(textValue, null, XmlReader.Depth); // Text for IAddChild::AddText() 4768WriteText(textValue, null, XmlReader.Depth); // Text for object/string/IList ContentProperty 4781WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 4799WriteText(textValue, converterType, XmlReader.Depth); // Text for TypeConverter 5021WriteText(textValue, null, XmlReader.Depth); // Text for (Complex collection property)::Add() 5113WriteText(textValue, null, XmlReader.Depth); // Text for property IList::Add() 5144WriteText( textValue, null, XmlReader.Depth ); // Text saved for Unknown purposes. 5220if ((XmlReader.EOF) || ((ParseLoopState != ParserState.Uninitialized) && 52210 == XmlReader.Depth && XmlReader.NodeType == XmlNodeType.None)) 5267Debug.Assert(null != XmlReader, "XmlReader is not yet set"); 5269XmlCompatibilityReader xmlCompatReader = XmlReader as XmlCompatibilityReader; 5277XmlTextReader xmlTextReader = XmlReader as XmlTextReader;