1 implementation of Annotation
PresentationFramework (1)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
130public Annotation Annotation { get { return _annotation; } }
32 references to Annotation
PresentationFramework (32)
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\Component\HighlightComponent.cs (7)
238GetColors(attachedAnnotation.Annotation, out _background, out _selectedBackground); 255_attachedAnnotation.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 294_attachedAnnotation.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 529if (attachedAnnotation.Annotation == null) 535if (!_type.Equals(attachedAnnotation.Annotation.AnnotationType)) 537throw new ArgumentException(SR.Format(SR.NotHighlightAnnotationType, attachedAnnotation.Annotation.AnnotationType.ToString()), "attachedAnnotation"); 576Invariant.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation, "_attachedAnnotation is different than the input one");
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (8)
1261Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1275Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1293SNCAnnotation sncAnnotation = new SNCAnnotation(attachedAnnotation.Annotation); 1323attachedAnnotation.Annotation.Cargos.Add(cargo); 1328_attachedAnnotation.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1329_attachedAnnotation.Annotation.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated); 1358_attachedAnnotation.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1359_attachedAnnotation.Annotation.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
System\Windows\Annotations\AnnotationComponentChooser.cs (3)
67if (attachedAnnotation.Annotation.AnnotationType == StickyNoteControl.TextSchemaName) 72else if (attachedAnnotation.Annotation.AnnotationType == StickyNoteControl.InkSchemaName) 77else if (attachedAnnotation.Annotation.AnnotationType == HighlightComponent.TypeName)
System\Windows\Annotations\AnnotationHelper.cs (5)
835if (annotationType.Equals(attachedAnnot.Annotation.AnnotationType)) 850service.Store.DeleteAnnotation(attachedAnnot.Annotation.Id); 986if (HighlightComponent.TypeName.Equals(attachedAnnotation.Annotation.AnnotationType)) 999service.Store.DeleteAnnotation(attachedAnnotation.Annotation.Id); 1005SetAnchor(service, attachedAnnotation.Annotation, copy);
System\Windows\Annotations\AnnotationService.cs (4)
887Invariant.Assert((attachedAnnotation != null) && (attachedAnnotation.Annotation != null), "invalid attached annotation"); 888matchingAnnotation = FindAnnotationInList(attachedAnnotation, _annotationMap.GetAttachedAnnotations(attachedAnnotation.Annotation.Id)); 1170if (aa.Annotation == attachedAnnotation.Annotation &&
System\Windows\Controls\StickyNote.cs (1)
1064_attachedAnnotation.Store.DeleteAnnotation(_attachedAnnotation.Annotation.Id);