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