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