23 references to Id
PresentationFramework (23)
src\Framework\MS\Internal\Annotations\AnnotationMap.cs (4)
37if (!_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.Annotation.Id, out list)) 40_annotationIdToAttachedAnnotations.Add(attachedAnnotation.Annotation.Id, list); 53if (_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.Annotation.Id, out list)) 58_annotationIdToAttachedAnnotations.Remove(attachedAnnotation.Annotation.Id);
src\Framework\MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (6)
82Debug.Assert(FindAnnotation(annotation.Id) == null, "annotation not found"); 86_currentAnnotations.Add(annotation.Id, new CachedAnnotation(annotation, dirty)); 165annotations.Add(annotation.Id, annotation); 258_currentAnnotations[args.Annotation.Id].Dirty = true; 270_currentAnnotations[args.Annotation.Id].Dirty = true; 282_currentAnnotations[args.Annotation.Id].Dirty = true;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (4)
783if (annotation.Id.Equals(newAnnotation.Id)) 857service.Store.DeleteAnnotation(attachedAnnot.Annotation.Id); 1007service.Store.DeleteAnnotation(attachedAnnotation.Annotation.Id);
src\Framework\System\Windows\Annotations\AnnotationService.cs (5)
921matchingAnnotation = FindAnnotationInList(attachedAnnotation, _annotationMap.GetAttachedAnnotations(attachedAnnotation.Annotation.Id)); 1279AnnotationDeleted(args.Annotation.Id); 1341if (_annotationMap.GetAttachedAnnotations(annotation.Id).Count > 0) 1431IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1472IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (3)
155XPathNavigator editor = GetAnnotationNodeForId(newAnnotation.Id); 162if (_storeAnnotationsMap.FindAnnotation(newAnnotation.Id) != null) 986XPathNavigator editor = GetAnnotationNodeForId(annotation.Id);
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1074_attachedAnnotation.Store.DeleteAnnotation(_attachedAnnotation.Annotation.Id);