34 references to Attributes
PresentationFramework (34)
System\Windows\Annotations\Annotation.cs (15)
203
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.Id, XmlConvert.ToString(_id));
204
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.CreationTime, XmlConvert.ToString(_created));
205
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.LastModificationTime, XmlConvert.ToString(_modified));
209
writer.WriteStartAttribute(AnnotationXmlConstants.
Attributes
.TypeName);
612
case AnnotationXmlConstants.
Attributes
.Id:
619
case AnnotationXmlConstants.
Attributes
.CreationTime:
623
case AnnotationXmlConstants.
Attributes
.LastModificationTime:
629
case AnnotationXmlConstants.
Attributes
.TypeName:
637
throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.
Attributes
.TypeName));
648
throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.
Attributes
.TypeName));
655
throw new FormatException(SR.Format(SR.InvalidAttributeValue, AnnotationXmlConstants.
Attributes
.TypeName));
669
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.Id, AnnotationXmlConstants.Elements.Annotation));
673
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.CreationTime, AnnotationXmlConstants.Elements.Annotation));
677
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.LastModificationTime, AnnotationXmlConstants.Elements.Annotation));
681
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.TypeName, AnnotationXmlConstants.Elements.Annotation));
System\Windows\Annotations\AnnotationResource.cs (5)
118
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.Id, XmlConvert.ToString(_id));
121
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.ResourceName, _name);
449
case AnnotationXmlConstants.
Attributes
.Id:
453
case AnnotationXmlConstants.
Attributes
.ResourceName:
466
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.Id, AnnotationXmlConstants.Elements.Resource));
System\Windows\Annotations\LocatorPart.cs (7)
375
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}))]";
406
res += $"@{AnnotationXmlConstants.
Attributes
.ItemName}=\"{k_v.Key}\" and @{AnnotationXmlConstants.
Attributes
.ItemValue}=\"{k_v.Value}\"]";
System\Windows\Annotations\LocatorPartList.cs (6)
172
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.ItemName, pair.Key);
173
writer.WriteAttributeString(AnnotationXmlConstants.
Attributes
.ItemValue, pair.Value);
233
case AnnotationXmlConstants.
Attributes
.ItemName:
236
case AnnotationXmlConstants.
Attributes
.ItemValue:
248
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.ItemName, AnnotationXmlConstants.Elements.Item));
252
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.ItemValue, AnnotationXmlConstants.Elements.Item));
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
567
throw new XmlException(SR.Format(SR.RequiredAttributeMissing, AnnotationXmlConstants.
Attributes
.Id, AnnotationXmlConstants.Elements.Annotation));