23 references to Id
PresentationFramework (23)
MS\Internal\Annotations\AnnotationMap.cs (4)
25if (!_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.Annotation.Id, out list)) 28_annotationIdToAttachedAnnotations.Add(attachedAnnotation.Annotation.Id, list); 41if (_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.Annotation.Id, out list)) 46_annotationIdToAttachedAnnotations.Remove(attachedAnnotation.Annotation.Id);
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (6)
69Debug.Assert(FindAnnotation(annotation.Id) == null, "annotation not found"); 73_currentAnnotations.Add(annotation.Id, new CachedAnnotation(annotation, dirty)); 151annotations.Add(annotation.Id, annotation); 244_currentAnnotations[args.Annotation.Id].Dirty = true; 256_currentAnnotations[args.Annotation.Id].Dirty = true; 268_currentAnnotations[args.Annotation.Id].Dirty = true;
System\Windows\Annotations\AnnotationHelper.cs (4)
764if (annotation.Id.Equals(newAnnotation.Id)) 838service.Store.DeleteAnnotation(attachedAnnot.Annotation.Id); 987service.Store.DeleteAnnotation(attachedAnnotation.Annotation.Id);
System\Windows\Annotations\AnnotationService.cs (5)
876matchingAnnotation = FindAnnotationInList(attachedAnnotation, _annotationMap.GetAttachedAnnotations(attachedAnnotation.Annotation.Id)); 1227AnnotationDeleted(args.Annotation.Id); 1289if (_annotationMap.GetAttachedAnnotations(annotation.Id).Count > 0) 1379IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1420IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
System\Windows\Annotations\Storage\XmlStreamStore.cs (3)
131XPathNavigator editor = GetAnnotationNodeForId(newAnnotation.Id); 138if (_storeAnnotationsMap.FindAnnotation(newAnnotation.Id) != null) 946XPathNavigator editor = GetAnnotationNodeForId(annotation.Id);
System\Windows\Controls\StickyNote.cs (1)
1048_attachedAnnotation.Store.DeleteAnnotation(_attachedAnnotation.Annotation.Id);