1 implementation of Annotation
PresentationFramework (1)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
134
public Annotation
Annotation
{ get { return _annotation; } }
32 references to Annotation
PresentationFramework (32)
src\Framework\MS\Internal\Annotations\AnnotationMap.cs (4)
37
if (!_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.
Annotation
.Id, out list))
40
_annotationIdToAttachedAnnotations.Add(attachedAnnotation.
Annotation
.Id, list);
53
if (_annotationIdToAttachedAnnotations.TryGetValue(attachedAnnotation.
Annotation
.Id, out list))
58
_annotationIdToAttachedAnnotations.Remove(attachedAnnotation.
Annotation
.Id);
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (7)
248
GetColors(attachedAnnotation.
Annotation
, out _background, out _selectedBackground);
265
_attachedAnnotation.
Annotation
.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
308
_attachedAnnotation.
Annotation
.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
554
if (attachedAnnotation.
Annotation
== null)
560
if (!_type.Equals(attachedAnnotation.
Annotation
.AnnotationType))
562
throw new ArgumentException(SR.Get(SRID.NotHighlightAnnotationType, attachedAnnotation.
Annotation
.AnnotationType.ToString()), "attachedAnnotation");
602
Invariant.Assert(_attachedAnnotation != null && _attachedAnnotation.
Annotation
== args.Annotation, "_attachedAnnotation is different than the input one");
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (8)
1276
Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.
Annotation
== args.Annotation);
1290
Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.
Annotation
== args.Annotation);
1308
SNCAnnotation sncAnnotation = new SNCAnnotation(attachedAnnotation.
Annotation
);
1338
attachedAnnotation.
Annotation
.Cargos.Add(cargo);
1343
_attachedAnnotation.
Annotation
.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
1344
_attachedAnnotation.
Annotation
.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
1373
_attachedAnnotation.
Annotation
.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
1374
_attachedAnnotation.
Annotation
.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
src\Framework\System\Windows\Annotations\AnnotationComponentChooser.cs (3)
72
if (attachedAnnotation.
Annotation
.AnnotationType == StickyNoteControl.TextSchemaName)
77
else if (attachedAnnotation.
Annotation
.AnnotationType == StickyNoteControl.InkSchemaName)
82
else if (attachedAnnotation.
Annotation
.AnnotationType == HighlightComponent.TypeName)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (5)
842
if (annotationType.Equals(attachedAnnot.
Annotation
.AnnotationType))
857
service.Store.DeleteAnnotation(attachedAnnot.
Annotation
.Id);
994
if (HighlightComponent.TypeName.Equals(attachedAnnotation.
Annotation
.AnnotationType))
1007
service.Store.DeleteAnnotation(attachedAnnotation.
Annotation
.Id);
1013
SetAnchor(service, attachedAnnotation.
Annotation
, copy);
src\Framework\System\Windows\Annotations\AnnotationService.cs (4)
920
Invariant.Assert((attachedAnnotation != null) && (attachedAnnotation.
Annotation
!= null), "invalid attached annotation");
921
matchingAnnotation = FindAnnotationInList(attachedAnnotation, _annotationMap.GetAttachedAnnotations(attachedAnnotation.
Annotation
.Id));
1210
if (aa.
Annotation
== attachedAnnotation.
Annotation
&&
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1074
_attachedAnnotation.Store.DeleteAnnotation(_attachedAnnotation.
Annotation
.Id);