23 references to Id
PresentationFramework (23)
MS\Internal\Annotations\AnnotationMap.cs (4)
31if (!_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.Annotation.Id, out list)) 34_annotationIdToAttachedAnnotations.Add(attachedAnnotation.Annotation.Id, list); 47if (_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.Annotation.Id, out list)) 52_annotationIdToAttachedAnnotations.Remove(attachedAnnotation.Annotation.Id);
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (6)
76Debug.Assert(FindAnnotation(annotation.Id) == null, "annotation not found"); 80_currentAnnotations.Add(annotation.Id, new CachedAnnotation(annotation, dirty)); 158annotations.Add(annotation.Id, annotation); 251_currentAnnotations[args.Annotation.Id].Dirty = true; 263_currentAnnotations[args.Annotation.Id].Dirty = true; 275_currentAnnotations[args.Annotation.Id].Dirty = true;
System\Windows\Annotations\AnnotationHelper.cs (4)
776if (annotation.Id.Equals(newAnnotation.Id)) 850service.Store.DeleteAnnotation(attachedAnnot.Annotation.Id); 999service.Store.DeleteAnnotation(attachedAnnotation.Annotation.Id);
System\Windows\Annotations\AnnotationService.cs (5)
888matchingAnnotation = FindAnnotationInList(attachedAnnotation, _annotationMap.GetAttachedAnnotations(attachedAnnotation.Annotation.Id)); 1239AnnotationDeleted(args.Annotation.Id); 1301if (_annotationMap.GetAttachedAnnotations(annotation.Id).Count > 0) 1391IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1432IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
System\Windows\Annotations\Storage\XmlStreamStore.cs (3)
142XPathNavigator editor = GetAnnotationNodeForId(newAnnotation.Id); 149if (_storeAnnotationsMap.FindAnnotation(newAnnotation.Id) != null) 957XPathNavigator editor = GetAnnotationNodeForId(annotation.Id);
System\Windows\Controls\StickyNote.cs (1)
1064_attachedAnnotation.Store.DeleteAnnotation(_attachedAnnotation.Annotation.Id);