51 references to Elements
PresentationFramework (51)
System\Windows\Annotations\Annotation.cs (23)
53
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.Annotation)]
215
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.AuthorCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
220
writer.WriteElementString(AnnotationXmlConstants.Prefixes.BaseSchemaPrefix, AnnotationXmlConstants.
Elements
.StringAuthor, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace, author);
228
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.AnchorCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
241
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.CargoCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
283
while (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.
Elements
.Annotation == reader.LocalName))
285
if (AnnotationXmlConstants.
Elements
.AnchorCollection == reader.LocalName)
287
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.AnchorCollection);
292
while (!(AnnotationXmlConstants.
Elements
.AnchorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
300
else if (AnnotationXmlConstants.
Elements
.CargoCollection == reader.LocalName)
302
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.CargoCollection);
307
while (!(AnnotationXmlConstants.
Elements
.CargoCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
315
else if (AnnotationXmlConstants.
Elements
.AuthorCollection == reader.LocalName)
317
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.AuthorCollection);
322
while (!(AnnotationXmlConstants.
Elements
.AuthorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
324
if (!(AnnotationXmlConstants.
Elements
.StringAuthor == reader.LocalName && XmlNodeType.Element == reader.NodeType))
326
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Annotation));
341
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Annotation));
661
throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Annotation));
669
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Annotation));
673
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.CreationTime, AnnotationXmlConstants.
Elements
.Annotation));
677
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.LastModificationTime, AnnotationXmlConstants.
Elements
.Annotation));
681
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.TypeName, AnnotationXmlConstants.
Elements
.Annotation));
System\Windows\Annotations\AnnotationResource.cs (7)
32
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.Resource)]
173
while (!(AnnotationXmlConstants.
Elements
.Resource == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
175
if (AnnotationXmlConstants.
Elements
.ContentLocatorGroup == reader.LocalName)
180
else if (AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName)
194
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Resource));
459
throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Resource));
466
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Resource));
System\Windows\Annotations\LocatorGroup.cs (5)
30
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.ContentLocatorGroup)]
127
Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.ContentLocatorGroup);
134
while (!(AnnotationXmlConstants.
Elements
.ContentLocatorGroup == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
137
if (AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName)
146
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.ContentLocatorGroup));
System\Windows\Annotations\LocatorPart.cs (3)
364
res += $"{TextSelectionProcessor.CharacterRangeElementName.Name}/{corePrefix}:{AnnotationXmlConstants.
Elements
.Item}";
399
res += $"/parent::*/{corePrefix}:{AnnotationXmlConstants.
Elements
.Item}[";
404
res += $"/{corePrefix}:{AnnotationXmlConstants.
Elements
.Item}[";
System\Windows\Annotations\LocatorPartList.cs (11)
21
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.ContentLocator)]
171
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.Item, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
195
Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.ContentLocator);
204
while (!(AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
208
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.ContentLocator));
224
if (AnnotationXmlConstants.
Elements
.Item == reader.LocalName && reader.NamespaceURI == AnnotationXmlConstants.Namespaces.CoreSchemaNamespace)
241
throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Item));
248
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemName, AnnotationXmlConstants.
Elements
.Item));
252
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemValue, AnnotationXmlConstants.
Elements
.Item));
265
if (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.
Elements
.Item == reader.LocalName))
268
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Item));
System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
240
string query = $@"//{AnnotationXmlConstants.Prefixes.CoreSchemaPrefix}:{AnnotationXmlConstants.
Elements
.ContentLocator}";
567
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Annotation));