34 references to Attributes
PresentationFramework (34)
src\Framework\System\Windows\Annotations\Annotation.cs (15)
232writer.WriteAttributeString(AnnotationXmlConstants.Attributes.Id, XmlConvert.ToString(_id)); 233writer.WriteAttributeString(AnnotationXmlConstants.Attributes.CreationTime, XmlConvert.ToString(_created)); 234writer.WriteAttributeString(AnnotationXmlConstants.Attributes.LastModificationTime, XmlConvert.ToString(_modified)); 238writer.WriteStartAttribute(AnnotationXmlConstants.Attributes.TypeName); 644case AnnotationXmlConstants.Attributes.Id: 651case AnnotationXmlConstants.Attributes.CreationTime: 655case AnnotationXmlConstants.Attributes.LastModificationTime: 661case AnnotationXmlConstants.Attributes.TypeName: 669throw new FormatException(SR.Get(SRID.InvalidAttributeValue, AnnotationXmlConstants.Attributes.TypeName)); 680throw new FormatException(SR.Get(SRID.InvalidAttributeValue, AnnotationXmlConstants.Attributes.TypeName)); 687throw new FormatException(SR.Get(SRID.InvalidAttributeValue, AnnotationXmlConstants.Attributes.TypeName)); 701throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Annotation)); 705throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.CreationTime, AnnotationXmlConstants.Elements.Annotation)); 709throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.LastModificationTime, AnnotationXmlConstants.Elements.Annotation)); 713throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.TypeName, AnnotationXmlConstants.Elements.Annotation));
src\Framework\System\Windows\Annotations\AnnotationResource.cs (5)
143writer.WriteAttributeString(AnnotationXmlConstants.Attributes.Id, XmlConvert.ToString(_id)); 146writer.WriteAttributeString(AnnotationXmlConstants.Attributes.ResourceName, _name); 478case AnnotationXmlConstants.Attributes.Id: 482case AnnotationXmlConstants.Attributes.ResourceName: 495throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Resource));
src\Framework\System\Windows\Annotations\LocatorPart.cs (7)
386res += "[starts-with(@" + AnnotationXmlConstants.Attributes.ItemName + ", \"" + TextSelectionProcessor.SegmentAttribute + "\") and " + 387" ((substring-before(@" + AnnotationXmlConstants.Attributes.ItemValue + ",\",\") >= " + startStr + " and substring-before(@" + AnnotationXmlConstants.Attributes.ItemValue + ",\",\") <= " + endStr + ") or " + 388" (substring-before(@" + AnnotationXmlConstants.Attributes.ItemValue + ",\",\") < " + startStr + " and substring-after(@" + AnnotationXmlConstants.Attributes.ItemValue + ",\",\") >= " + startStr + "))]"; 419res += "@" + AnnotationXmlConstants.Attributes.ItemName + "=\"" + k_v.Key + "\" and @" + AnnotationXmlConstants.Attributes.ItemValue + "=\"" + k_v.Value + "\"]";
src\Framework\System\Windows\Annotations\LocatorPartList.cs (6)
207writer.WriteAttributeString(AnnotationXmlConstants.Attributes.ItemName, pair.Key); 208writer.WriteAttributeString(AnnotationXmlConstants.Attributes.ItemValue, pair.Value); 271case AnnotationXmlConstants.Attributes.ItemName: 274case AnnotationXmlConstants.Attributes.ItemValue: 286throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemName, AnnotationXmlConstants.Elements.Item)); 290throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.ItemValue, AnnotationXmlConstants.Elements.Item));
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
600throw new XmlException(SR.Get(SRID.RequiredAttributeMissing, AnnotationXmlConstants.Attributes.Id, AnnotationXmlConstants.Elements.Annotation));