34 references to Attributes
PresentationFramework (34)
System\Windows\Annotations\Annotation.cs (15)
210
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.Id, XmlConvert.ToString(_id));
211
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.CreationTime, XmlConvert.ToString(_created));
212
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.LastModificationTime, XmlConvert.ToString(_modified));
216
writer.WriteStartAttribute(AnnotationXmlConstants.
Attributes
.TypeName);
619
case AnnotationXmlConstants.
Attributes
.Id:
626
case AnnotationXmlConstants.
Attributes
.CreationTime:
630
case AnnotationXmlConstants.
Attributes
.LastModificationTime:
636
case AnnotationXmlConstants.
Attributes
.TypeName:
644
throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.
Attributes
.TypeName));
655
throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.
Attributes
.TypeName));
662
throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.
Attributes
.TypeName));
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 (5)
124
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.Id, XmlConvert.ToString(_id));
127
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.ResourceName, _name);
455
case AnnotationXmlConstants.
Attributes
.Id:
459
case AnnotationXmlConstants.
Attributes
.ResourceName:
472
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.Id, AnnotationXmlConstants.Elements.Resource));
System\Windows\Annotations\LocatorPart.cs (7)
379
res += $"[starts-with(@{AnnotationXmlConstants.
Attributes
.ItemName}, \"{TextSelectionProcessor.SegmentAttribute}\") and ((substring-before(@{AnnotationXmlConstants.
Attributes
.ItemValue},\",\") >= {startStr} and substring-before(@{AnnotationXmlConstants.
Attributes
.ItemValue},\",\") <= {endStr}) or (substring-before(@{AnnotationXmlConstants.
Attributes
.ItemValue},\",\") < {startStr} and substring-after(@{AnnotationXmlConstants.
Attributes
.ItemValue},\",\") >= {startStr}))]";
410
res += $"@{AnnotationXmlConstants.
Attributes
.ItemName}=\"{k_v.Key}\" and @{AnnotationXmlConstants.
Attributes
.ItemValue}=\"{k_v.Value}\"]";
System\Windows\Annotations\LocatorPartList.cs (6)
193
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.ItemName, pair.Key);
194
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.ItemValue, pair.Value);
254
case AnnotationXmlConstants.
Attributes
.ItemName:
257
case AnnotationXmlConstants.
Attributes
.ItemValue:
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));
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
578
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.Id, AnnotationXmlConstants.Elements.Annotation));