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