34 references to Attributes
PresentationFramework (34)
System\Windows\Annotations\Annotation.cs (15)
202
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.Id, XmlConvert.ToString(_id));
203
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.CreationTime, XmlConvert.ToString(_created));
204
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.LastModificationTime, XmlConvert.ToString(_modified));
208
writer.WriteStartAttribute(AnnotationXmlConstants.
Attributes
.TypeName);
613
case AnnotationXmlConstants.
Attributes
.Id:
620
case AnnotationXmlConstants.
Attributes
.CreationTime:
624
case AnnotationXmlConstants.
Attributes
.LastModificationTime:
630
case AnnotationXmlConstants.
Attributes
.TypeName:
640
throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.
Attributes
.TypeName));
651
throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.
Attributes
.TypeName));
658
throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.
Attributes
.TypeName));
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 (5)
117
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.Id, XmlConvert.ToString(_id));
120
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.ResourceName, _name);
445
case AnnotationXmlConstants.
Attributes
.Id:
449
case AnnotationXmlConstants.
Attributes
.ResourceName:
462
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.Id, AnnotationXmlConstants.Elements.Resource));
System\Windows\Annotations\LocatorPart.cs (7)
374
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}))]";
405
res += $"@{AnnotationXmlConstants.
Attributes
.ItemName}=\"{k_v.Key}\" and @{AnnotationXmlConstants.
Attributes
.ItemValue}=\"{k_v.Value}\"]";
System\Windows\Annotations\LocatorPartList.cs (6)
171
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.ItemName, pair.Key);
172
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.ItemValue, pair.Value);
232
case AnnotationXmlConstants.
Attributes
.ItemName:
235
case AnnotationXmlConstants.
Attributes
.ItemValue:
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));
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
566
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.Id, AnnotationXmlConstants.Elements.Annotation));