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