1 implementation of Annotation
PresentationFramework (1)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
124public Annotation Annotation { get { return _annotation; } }
32 references to Annotation
PresentationFramework (32)
MS\Internal\Annotations\AnnotationMap.cs (4)
25if (!_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.Annotation.Id, out list)) 28_annotationIdToAttachedAnnotations.Add(attachedAnnotation.Annotation.Id, list); 41if (_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.Annotation.Id, out list)) 46_annotationIdToAttachedAnnotations.Remove(attachedAnnotation.Annotation.Id);
MS\Internal\Annotations\Component\HighlightComponent.cs (7)
230GetColors(attachedAnnotation.Annotation, out _background, out _selectedBackground); 247_attachedAnnotation.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 286_attachedAnnotation.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 521if (attachedAnnotation.Annotation == null) 527if (!_type.Equals(attachedAnnotation.Annotation.AnnotationType)) 529throw new ArgumentException(SR.Format(SR.NotHighlightAnnotationType, attachedAnnotation.Annotation.AnnotationType.ToString()), "attachedAnnotation"); 568Invariant.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation, "_attachedAnnotation is different than the input one");
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (8)
1251Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1265Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1283SNCAnnotation sncAnnotation = new SNCAnnotation(attachedAnnotation.Annotation); 1313attachedAnnotation.Annotation.Cargos.Add(cargo); 1318_attachedAnnotation.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1319_attachedAnnotation.Annotation.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated); 1348_attachedAnnotation.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1349_attachedAnnotation.Annotation.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
System\Windows\Annotations\AnnotationComponentChooser.cs (3)
63if (attachedAnnotation.Annotation.AnnotationType == StickyNoteControl.TextSchemaName) 68else if (attachedAnnotation.Annotation.AnnotationType == StickyNoteControl.InkSchemaName) 73else if (attachedAnnotation.Annotation.AnnotationType == HighlightComponent.TypeName)
System\Windows\Annotations\AnnotationHelper.cs (5)
823if (annotationType.Equals(attachedAnnot.Annotation.AnnotationType)) 838service.Store.DeleteAnnotation(attachedAnnot.Annotation.Id); 974if (HighlightComponent.TypeName.Equals(attachedAnnotation.Annotation.AnnotationType)) 987service.Store.DeleteAnnotation(attachedAnnotation.Annotation.Id); 993SetAnchor(service, attachedAnnotation.Annotation, copy);
System\Windows\Annotations\AnnotationService.cs (4)
875Invariant.Assert((attachedAnnotation != null) && (attachedAnnotation.Annotation != null), "invalid attached annotation"); 876matchingAnnotation = FindAnnotationInList(attachedAnnotation, _annotationMap.GetAttachedAnnotations(attachedAnnotation.Annotation.Id)); 1158if (aa.Annotation == attachedAnnotation.Annotation &&
System\Windows\Controls\StickyNote.cs (1)
1048_attachedAnnotation.Store.DeleteAnnotation(_attachedAnnotation.Annotation.Id);