2 writes to _attachedAnnotation
PresentationFramework (2)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
1317
_attachedAnnotation
= attachedAnnotation;
1353
_attachedAnnotation
= null;
32 references to _attachedAnnotation
PresentationFramework (32)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (24)
908
if (
_attachedAnnotation
== null)
932
if (attachedAnnotation ==
_attachedAnnotation
)
971
if (
_attachedAnnotation
!= null)
973
annotations.Add(
_attachedAnnotation
);
988
if (
_attachedAnnotation
!= null)
996
&&
_attachedAnnotation
.Parent is DocumentPageHost)
1005
Point anchor =
_attachedAnnotation
.AnchorPoint;
1089
return
_attachedAnnotation
!= null ?
_attachedAnnotation
.Parent as UIElement : null;
1232
_attachedAnnotation
!= null &&
_attachedAnnotation
.Parent is DocumentPageHost);
1251
Debug.Assert(
_attachedAnnotation
!= null &&
_attachedAnnotation
.Annotation == args.Annotation);
1265
Debug.Assert(
_attachedAnnotation
!= null &&
_attachedAnnotation
.Annotation == args.Annotation);
1318
_attachedAnnotation
.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
1319
_attachedAnnotation
.Annotation.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
1330
if ((
_attachedAnnotation
.AttachmentLevel & AttachmentLevel.StartPortion) == 0)
1348
_attachedAnnotation
.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
1349
_attachedAnnotation
.Annotation.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
1350
_anchor.RemoveAttachedAnnotation(
_attachedAnnotation
);
1480
if (
_attachedAnnotation
!= null)
1561
Debug.Assert(
_attachedAnnotation
!= null, "This property should never be acccessed from outside of CAF");
1564
Point anchor =
_attachedAnnotation
.AnchorPoint;
System\Windows\Controls\StickyNote.cs (8)
477
if (
_attachedAnnotation
!= null)
478
return
_attachedAnnotation
;
1034
Invariant.Assert(
_attachedAnnotation
!= null, "AttachedAnnotation is null.");
1035
Invariant.Assert(
_attachedAnnotation
.Store != null, "AttachedAnnotation's Store is null.");
1037
_attachedAnnotation
.Store.DeleteAnnotation(
_attachedAnnotation
.Annotation.Id);
1353
DependencyObject parent =
_attachedAnnotation
.Parent;
1740
args.CanExecute = snc.
_attachedAnnotation
!= null;