2 writes to _attachedAnnotation
PresentationFramework (2)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
1342
_attachedAnnotation
= attachedAnnotation;
1378
_attachedAnnotation
= null;
32 references to _attachedAnnotation
PresentationFramework (32)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (24)
930
if (
_attachedAnnotation
== null)
957
if (attachedAnnotation ==
_attachedAnnotation
)
997
if (
_attachedAnnotation
!= null)
999
annotations.Add(
_attachedAnnotation
);
1014
if (
_attachedAnnotation
!= null)
1022
&&
_attachedAnnotation
.Parent is DocumentPageHost)
1031
Point anchor =
_attachedAnnotation
.AnchorPoint;
1114
return
_attachedAnnotation
!= null ?
_attachedAnnotation
.Parent as UIElement : null;
1257
_attachedAnnotation
!= null &&
_attachedAnnotation
.Parent is DocumentPageHost);
1276
Debug.Assert(
_attachedAnnotation
!= null &&
_attachedAnnotation
.Annotation == args.Annotation);
1290
Debug.Assert(
_attachedAnnotation
!= null &&
_attachedAnnotation
.Annotation == args.Annotation);
1343
_attachedAnnotation
.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
1344
_attachedAnnotation
.Annotation.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
1355
if ((
_attachedAnnotation
.AttachmentLevel & AttachmentLevel.StartPortion) == 0)
1373
_attachedAnnotation
.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
1374
_attachedAnnotation
.Annotation.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
1375
_anchor.RemoveAttachedAnnotation(
_attachedAnnotation
);
1506
if (
_attachedAnnotation
!= null)
1587
Debug.Assert(
_attachedAnnotation
!= null, "This property should never be acccessed from outside of CAF");
1590
Point anchor =
_attachedAnnotation
.AnchorPoint;
src\Framework\System\Windows\Controls\StickyNote.cs (8)
514
if (
_attachedAnnotation
!= null)
515
return
_attachedAnnotation
;
1071
Invariant.Assert(
_attachedAnnotation
!= null, "AttachedAnnotation is null.");
1072
Invariant.Assert(
_attachedAnnotation
.Store != null, "AttachedAnnotation's Store is null.");
1074
_attachedAnnotation
.Store.DeleteAnnotation(
_attachedAnnotation
.Annotation.Id);
1390
DependencyObject parent =
_attachedAnnotation
.Parent;
1792
args.CanExecute = snc.
_attachedAnnotation
!= null;