51 references to Elements
PresentationFramework (51)
System\Windows\Annotations\Annotation.cs (23)
60
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.Annotation)]
222
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.AuthorCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
227
writer.WriteElementString(AnnotationXmlConstants.Prefixes.BaseSchemaPrefix, AnnotationXmlConstants.
Elements
.StringAuthor, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace, author);
235
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.AnchorCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
248
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.CargoCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
290
while (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.
Elements
.Annotation == reader.LocalName))
292
if (AnnotationXmlConstants.
Elements
.AnchorCollection == reader.LocalName)
294
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.AnchorCollection);
299
while (!(AnnotationXmlConstants.
Elements
.AnchorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
307
else if (AnnotationXmlConstants.
Elements
.CargoCollection == reader.LocalName)
309
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.CargoCollection);
314
while (!(AnnotationXmlConstants.
Elements
.CargoCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
322
else if (AnnotationXmlConstants.
Elements
.AuthorCollection == reader.LocalName)
324
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.AuthorCollection);
329
while (!(AnnotationXmlConstants.
Elements
.AuthorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
331
if (!(AnnotationXmlConstants.
Elements
.StringAuthor == reader.LocalName && XmlNodeType.Element == reader.NodeType))
333
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Annotation));
348
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Annotation));
668
throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Annotation));
676
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Annotation));
680
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.CreationTime, AnnotationXmlConstants.
Elements
.Annotation));
684
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.LastModificationTime, AnnotationXmlConstants.
Elements
.Annotation));
688
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.TypeName, AnnotationXmlConstants.
Elements
.Annotation));
System\Windows\Annotations\AnnotationResource.cs (7)
38
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.Resource)]
179
while (!(AnnotationXmlConstants.
Elements
.Resource == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
181
if (AnnotationXmlConstants.
Elements
.ContentLocatorGroup == reader.LocalName)
186
else if (AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName)
200
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Resource));
465
throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Resource));
472
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Resource));
System\Windows\Annotations\LocatorGroup.cs (5)
36
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.ContentLocatorGroup)]
133
Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.ContentLocatorGroup);
140
while (!(AnnotationXmlConstants.
Elements
.ContentLocatorGroup == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
143
if (AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName)
152
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.ContentLocatorGroup));
System\Windows\Annotations\LocatorPart.cs (3)
368
res += $"{TextSelectionProcessor.CharacterRangeElementName.Name}/{corePrefix}:{AnnotationXmlConstants.
Elements
.Item}";
403
res += $"/parent::*/{corePrefix}:{AnnotationXmlConstants.
Elements
.Item}[";
408
res += $"/{corePrefix}:{AnnotationXmlConstants.
Elements
.Item}[";
System\Windows\Annotations\LocatorPartList.cs (11)
41
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.ContentLocator)]
192
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.Item, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
216
Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.ContentLocator);
225
while (!(AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
229
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.ContentLocator));
245
if (AnnotationXmlConstants.
Elements
.Item == reader.LocalName && reader.NamespaceURI == AnnotationXmlConstants.Namespaces.CoreSchemaNamespace)
262
throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Item));
269
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemName, AnnotationXmlConstants.
Elements
.Item));
273
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemValue, AnnotationXmlConstants.
Elements
.Item));
286
if (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.
Elements
.Item == reader.LocalName))
289
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Item));
System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
251
string query = $@"//{AnnotationXmlConstants.Prefixes.CoreSchemaPrefix}:{AnnotationXmlConstants.
Elements
.ContentLocator}";
578
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Annotation));