2 writes to _attachedAnnotation
PresentationFramework (2)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
1316
_attachedAnnotation
= attachedAnnotation;
1352
_attachedAnnotation
= null;
32 references to _attachedAnnotation
PresentationFramework (32)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (24)
907
if (
_attachedAnnotation
== null)
931
if (attachedAnnotation ==
_attachedAnnotation
)
970
if (
_attachedAnnotation
!= null)
972
annotations.Add(
_attachedAnnotation
);
987
if (
_attachedAnnotation
!= null)
995
&&
_attachedAnnotation
.Parent is DocumentPageHost)
1004
Point anchor =
_attachedAnnotation
.AnchorPoint;
1088
return
_attachedAnnotation
!= null ?
_attachedAnnotation
.Parent as UIElement : null;
1231
_attachedAnnotation
!= null &&
_attachedAnnotation
.Parent is DocumentPageHost);
1250
Debug.Assert(
_attachedAnnotation
!= null &&
_attachedAnnotation
.Annotation == args.Annotation);
1264
Debug.Assert(
_attachedAnnotation
!= null &&
_attachedAnnotation
.Annotation == args.Annotation);
1317
_attachedAnnotation
.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
1318
_attachedAnnotation
.Annotation.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
1329
if ((
_attachedAnnotation
.AttachmentLevel & AttachmentLevel.StartPortion) == 0)
1347
_attachedAnnotation
.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
1348
_attachedAnnotation
.Annotation.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
1349
_anchor.RemoveAttachedAnnotation(
_attachedAnnotation
);
1479
if (
_attachedAnnotation
!= null)
1560
Debug.Assert(
_attachedAnnotation
!= null, "This property should never be acccessed from outside of CAF");
1563
Point anchor =
_attachedAnnotation
.AnchorPoint;
System\Windows\Controls\StickyNote.cs (8)
470
if (
_attachedAnnotation
!= null)
471
return
_attachedAnnotation
;
1022
Invariant.Assert(
_attachedAnnotation
!= null, "AttachedAnnotation is null.");
1023
Invariant.Assert(
_attachedAnnotation
.Store != null, "AttachedAnnotation's Store is null.");
1025
_attachedAnnotation
.Store.DeleteAnnotation(
_attachedAnnotation
.Annotation.Id);
1335
DependencyObject parent =
_attachedAnnotation
.Parent;
1713
args.CanExecute = snc.
_attachedAnnotation
!= null;