1 implementation of Annotation
PresentationFramework (1)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
123public Annotation Annotation { get { return _annotation; } }
32 references to Annotation
PresentationFramework (32)
MS\Internal\Annotations\AnnotationMap.cs (4)
24if (!_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.Annotation.Id, out list)) 27_annotationIdToAttachedAnnotations.Add(attachedAnnotation.Annotation.Id, list); 40if (_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.Annotation.Id, out list)) 45_annotationIdToAttachedAnnotations.Remove(attachedAnnotation.Annotation.Id);
MS\Internal\Annotations\Component\HighlightComponent.cs (7)
229GetColors(attachedAnnotation.Annotation, out _background, out _selectedBackground); 246_attachedAnnotation.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 285_attachedAnnotation.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 520if (attachedAnnotation.Annotation == null) 526if (!_type.Equals(attachedAnnotation.Annotation.AnnotationType)) 528throw new ArgumentException(SR.Format(SR.NotHighlightAnnotationType, attachedAnnotation.Annotation.AnnotationType.ToString()), nameof(attachedAnnotation)); 567Invariant.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation, "_attachedAnnotation is different than the input one");
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (8)
1250Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1264Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1282SNCAnnotation sncAnnotation = new SNCAnnotation(attachedAnnotation.Annotation); 1312attachedAnnotation.Annotation.Cargos.Add(cargo); 1317_attachedAnnotation.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1318_attachedAnnotation.Annotation.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated); 1347_attachedAnnotation.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1348_attachedAnnotation.Annotation.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
System\Windows\Annotations\AnnotationComponentChooser.cs (3)
62if (attachedAnnotation.Annotation.AnnotationType == StickyNoteControl.TextSchemaName) 67else if (attachedAnnotation.Annotation.AnnotationType == StickyNoteControl.InkSchemaName) 72else if (attachedAnnotation.Annotation.AnnotationType == HighlightComponent.TypeName)
System\Windows\Annotations\AnnotationHelper.cs (5)
820if (annotationType.Equals(attachedAnnot.Annotation.AnnotationType)) 835service.Store.DeleteAnnotation(attachedAnnot.Annotation.Id); 971if (HighlightComponent.TypeName.Equals(attachedAnnotation.Annotation.AnnotationType)) 984service.Store.DeleteAnnotation(attachedAnnotation.Annotation.Id); 990SetAnchor(service, attachedAnnotation.Annotation, copy);
System\Windows\Annotations\AnnotationService.cs (4)
869Invariant.Assert((attachedAnnotation != null) && (attachedAnnotation.Annotation != null), "invalid attached annotation"); 870matchingAnnotation = FindAnnotationInList(attachedAnnotation, _annotationMap.GetAttachedAnnotations(attachedAnnotation.Annotation.Id)); 1152if (aa.Annotation == attachedAnnotation.Annotation &&
System\Windows\Controls\StickyNote.cs (1)
1025_attachedAnnotation.Store.DeleteAnnotation(_attachedAnnotation.Annotation.Id);