1 implementation of Annotation
PresentationFramework (1)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
134public Annotation Annotation { get { return _annotation; } }
32 references to Annotation
PresentationFramework (32)
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\Component\HighlightComponent.cs (7)
248GetColors(attachedAnnotation.Annotation, out _background, out _selectedBackground); 265_attachedAnnotation.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 308_attachedAnnotation.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 554if (attachedAnnotation.Annotation == null) 560if (!_type.Equals(attachedAnnotation.Annotation.AnnotationType)) 562throw new ArgumentException(SR.Get(SRID.NotHighlightAnnotationType, attachedAnnotation.Annotation.AnnotationType.ToString()), "attachedAnnotation"); 602Invariant.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation, "_attachedAnnotation is different than the input one");
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (8)
1276Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1290Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1308SNCAnnotation sncAnnotation = new SNCAnnotation(attachedAnnotation.Annotation); 1338attachedAnnotation.Annotation.Cargos.Add(cargo); 1343_attachedAnnotation.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1344_attachedAnnotation.Annotation.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated); 1373_attachedAnnotation.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1374_attachedAnnotation.Annotation.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
src\Framework\System\Windows\Annotations\AnnotationComponentChooser.cs (3)
72if (attachedAnnotation.Annotation.AnnotationType == StickyNoteControl.TextSchemaName) 77else if (attachedAnnotation.Annotation.AnnotationType == StickyNoteControl.InkSchemaName) 82else if (attachedAnnotation.Annotation.AnnotationType == HighlightComponent.TypeName)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (5)
842if (annotationType.Equals(attachedAnnot.Annotation.AnnotationType)) 857service.Store.DeleteAnnotation(attachedAnnot.Annotation.Id); 994if (HighlightComponent.TypeName.Equals(attachedAnnotation.Annotation.AnnotationType)) 1007service.Store.DeleteAnnotation(attachedAnnotation.Annotation.Id); 1013SetAnchor(service, attachedAnnotation.Annotation, copy);
src\Framework\System\Windows\Annotations\AnnotationService.cs (4)
920Invariant.Assert((attachedAnnotation != null) && (attachedAnnotation.Annotation != null), "invalid attached annotation"); 921matchingAnnotation = FindAnnotationInList(attachedAnnotation, _annotationMap.GetAttachedAnnotations(attachedAnnotation.Annotation.Id)); 1210if (aa.Annotation == attachedAnnotation.Annotation &&
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1074_attachedAnnotation.Store.DeleteAnnotation(_attachedAnnotation.Annotation.Id);