51 references to Elements
PresentationFramework (51)
System\Windows\Annotations\Annotation.cs (23)
52
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.Annotation)]
214
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.AuthorCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
219
writer.WriteElementString(AnnotationXmlConstants.Prefixes.BaseSchemaPrefix, AnnotationXmlConstants.
Elements
.StringAuthor, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace, author);
227
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.AnchorCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
240
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.CargoCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
282
while (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.
Elements
.Annotation == reader.LocalName))
284
if (AnnotationXmlConstants.
Elements
.AnchorCollection == reader.LocalName)
286
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.AnchorCollection);
291
while (!(AnnotationXmlConstants.
Elements
.AnchorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
299
else if (AnnotationXmlConstants.
Elements
.CargoCollection == reader.LocalName)
301
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.CargoCollection);
306
while (!(AnnotationXmlConstants.
Elements
.CargoCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
314
else if (AnnotationXmlConstants.
Elements
.AuthorCollection == reader.LocalName)
316
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.AuthorCollection);
321
while (!(AnnotationXmlConstants.
Elements
.AuthorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
323
if (!(AnnotationXmlConstants.
Elements
.StringAuthor == reader.LocalName && XmlNodeType.Element == reader.NodeType))
325
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Annotation));
340
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Annotation));
664
throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Annotation));
672
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Annotation));
676
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.CreationTime, AnnotationXmlConstants.
Elements
.Annotation));
680
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.LastModificationTime, AnnotationXmlConstants.
Elements
.Annotation));
684
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.TypeName, AnnotationXmlConstants.
Elements
.Annotation));
System\Windows\Annotations\AnnotationResource.cs (7)
31
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.Resource)]
169
while (!(AnnotationXmlConstants.
Elements
.Resource == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
171
if (AnnotationXmlConstants.
Elements
.ContentLocatorGroup == reader.LocalName)
176
else if (AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName)
190
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Resource));
455
throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Resource));
462
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Resource));
System\Windows\Annotations\LocatorGroup.cs (5)
29
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.ContentLocatorGroup)]
126
Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.ContentLocatorGroup);
133
while (!(AnnotationXmlConstants.
Elements
.ContentLocatorGroup == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
136
if (AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName)
145
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.ContentLocatorGroup));
System\Windows\Annotations\LocatorPart.cs (3)
363
res += $"{TextSelectionProcessor.CharacterRangeElementName.Name}/{corePrefix}:{AnnotationXmlConstants.
Elements
.Item}";
398
res += $"/parent::*/{corePrefix}:{AnnotationXmlConstants.
Elements
.Item}[";
403
res += $"/{corePrefix}:{AnnotationXmlConstants.
Elements
.Item}[";
System\Windows\Annotations\LocatorPartList.cs (11)
20
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.ContentLocator)]
170
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.Item, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
194
Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.ContentLocator);
203
while (!(AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
207
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.ContentLocator));
223
if (AnnotationXmlConstants.
Elements
.Item == reader.LocalName && reader.NamespaceURI == AnnotationXmlConstants.Namespaces.CoreSchemaNamespace)
240
throw new XmlException(SR.Format(SR.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Item));
247
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemName, AnnotationXmlConstants.
Elements
.Item));
251
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemValue, AnnotationXmlConstants.
Elements
.Item));
264
if (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.
Elements
.Item == reader.LocalName))
267
throw new XmlException(SR.Format(SR.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Item));
System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
239
string query = $@"//{AnnotationXmlConstants.Prefixes.CoreSchemaPrefix}:{AnnotationXmlConstants.
Elements
.ContentLocator}";
566
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Annotation));