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)
762if (annotation.Id.Equals(newAnnotation.Id)) 836service.Store.DeleteAnnotation(attachedAnnot.Annotation.Id); 985service.Store.DeleteAnnotation(attachedAnnotation.Annotation.Id);
System\Windows\Annotations\AnnotationService.cs (5)
871matchingAnnotation = FindAnnotationInList(attachedAnnotation, _annotationMap.GetAttachedAnnotations(attachedAnnotation.Annotation.Id)); 1222AnnotationDeleted(args.Annotation.Id); 1284if (_annotationMap.GetAttachedAnnotations(annotation.Id).Count > 0) 1374IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1415IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
System\Windows\Annotations\Storage\XmlStreamStore.cs (3)
131XPathNavigator editor = GetAnnotationNodeForId(newAnnotation.Id); 138if (_storeAnnotationsMap.FindAnnotation(newAnnotation.Id) != null) 948XPathNavigator editor = GetAnnotationNodeForId(annotation.Id);
System\Windows\Controls\StickyNote.cs (1)
1026_attachedAnnotation.Store.DeleteAnnotation(_attachedAnnotation.Annotation.Id);