51 references to Elements
PresentationFramework (51)
src\Framework\System\Windows\Annotations\Annotation.cs (23)
73
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.Annotation)]
244
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.AuthorCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
249
writer.WriteElementString(AnnotationXmlConstants.Prefixes.BaseSchemaPrefix, AnnotationXmlConstants.
Elements
.StringAuthor, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace, author);
257
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.AnchorCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
270
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.CargoCollection, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
315
while (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.
Elements
.Annotation == reader.LocalName))
317
if (AnnotationXmlConstants.
Elements
.AnchorCollection == reader.LocalName)
319
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.AnchorCollection);
324
while (!(AnnotationXmlConstants.
Elements
.AnchorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
332
else if (AnnotationXmlConstants.
Elements
.CargoCollection == reader.LocalName)
334
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.CargoCollection);
339
while (!(AnnotationXmlConstants.
Elements
.CargoCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
347
else if (AnnotationXmlConstants.
Elements
.AuthorCollection == reader.LocalName)
349
CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.AuthorCollection);
354
while (!(AnnotationXmlConstants.
Elements
.AuthorCollection == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
356
if (!(AnnotationXmlConstants.
Elements
.StringAuthor == reader.LocalName && XmlNodeType.Element == reader.NodeType))
358
throw new XmlException(SR.Get(SRID.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Annotation));
373
throw new XmlException(SR.Get(SRID.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Annotation));
693
throw new XmlException(SR.Get(SRID.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Annotation));
701
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Annotation));
705
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.CreationTime, AnnotationXmlConstants.
Elements
.Annotation));
709
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.LastModificationTime, AnnotationXmlConstants.
Elements
.Annotation));
713
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.TypeName, AnnotationXmlConstants.
Elements
.Annotation));
src\Framework\System\Windows\Annotations\AnnotationResource.cs (7)
51
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.Resource)]
201
while (!(AnnotationXmlConstants.
Elements
.Resource == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
203
if (AnnotationXmlConstants.
Elements
.ContentLocatorGroup == reader.LocalName)
208
else if (AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName)
222
throw new XmlException(SR.Get(SRID.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Resource));
488
throw new XmlException(SR.Get(SRID.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Resource));
495
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Resource));
src\Framework\System\Windows\Annotations\LocatorGroup.cs (5)
46
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.ContentLocatorGroup)]
149
Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.ContentLocatorGroup);
156
while (!(AnnotationXmlConstants.
Elements
.ContentLocatorGroup == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
159
if (AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName)
168
throw new XmlException(SR.Get(SRID.InvalidXmlContent, AnnotationXmlConstants.
Elements
.ContentLocatorGroup));
src\Framework\System\Windows\Annotations\LocatorPart.cs (3)
375
res += TextSelectionProcessor.CharacterRangeElementName.Name + "/" + corePrefix + ":"+AnnotationXmlConstants.
Elements
.Item;
412
res += "/parent::*/" + corePrefix + ":" + AnnotationXmlConstants.
Elements
.Item + "[";
417
res += "/" + corePrefix + ":" + AnnotationXmlConstants.
Elements
.Item + "[";
src\Framework\System\Windows\Annotations\LocatorPartList.cs (11)
49
[XmlRoot(Namespace = AnnotationXmlConstants.Namespaces.CoreSchemaNamespace, ElementName = AnnotationXmlConstants.
Elements
.ContentLocator)]
206
writer.WriteStartElement(AnnotationXmlConstants.
Elements
.Item, AnnotationXmlConstants.Namespaces.CoreSchemaNamespace);
233
Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.
Elements
.ContentLocator);
242
while (!(AnnotationXmlConstants.
Elements
.ContentLocator == reader.LocalName && XmlNodeType.EndElement == reader.NodeType))
246
throw new XmlException(SR.Get(SRID.InvalidXmlContent, AnnotationXmlConstants.
Elements
.ContentLocator));
262
if (AnnotationXmlConstants.
Elements
.Item == reader.LocalName && reader.NamespaceURI == AnnotationXmlConstants.Namespaces.CoreSchemaNamespace)
279
throw new XmlException(SR.Get(SRID.UnexpectedAttribute, reader.LocalName, AnnotationXmlConstants.
Elements
.Item));
286
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemName, AnnotationXmlConstants.
Elements
.Item));
290
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemValue, AnnotationXmlConstants.
Elements
.Item));
303
if (!(XmlNodeType.EndElement == reader.NodeType && AnnotationXmlConstants.
Elements
.Item == reader.LocalName))
306
throw new XmlException(SR.Get(SRID.InvalidXmlContent, AnnotationXmlConstants.
Elements
.Item));
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
268
string query = @"//" + AnnotationXmlConstants.Prefixes.CoreSchemaPrefix + ":" + AnnotationXmlConstants.
Elements
.ContentLocator;
600
throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.
Elements
.Annotation));