2 writes to _attachedAnnotation
PresentationFramework (2)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
1327
_attachedAnnotation
= attachedAnnotation;
1363
_attachedAnnotation
= null;
32 references to _attachedAnnotation
PresentationFramework (32)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (24)
918
if (
_attachedAnnotation
== null)
942
if (attachedAnnotation ==
_attachedAnnotation
)
981
if (
_attachedAnnotation
!= null)
983
annotations.Add(
_attachedAnnotation
);
998
if (
_attachedAnnotation
!= null)
1006
&&
_attachedAnnotation
.Parent is DocumentPageHost)
1015
Point anchor =
_attachedAnnotation
.AnchorPoint;
1099
return
_attachedAnnotation
!= null ?
_attachedAnnotation
.Parent as UIElement : null;
1242
_attachedAnnotation
!= null &&
_attachedAnnotation
.Parent is DocumentPageHost);
1261
Debug.Assert(
_attachedAnnotation
!= null &&
_attachedAnnotation
.Annotation == args.Annotation);
1275
Debug.Assert(
_attachedAnnotation
!= null &&
_attachedAnnotation
.Annotation == args.Annotation);
1328
_attachedAnnotation
.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
1329
_attachedAnnotation
.Annotation.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
1340
if ((
_attachedAnnotation
.AttachmentLevel & AttachmentLevel.StartPortion) == 0)
1358
_attachedAnnotation
.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated);
1359
_attachedAnnotation
.Annotation.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated);
1360
_anchor.RemoveAttachedAnnotation(
_attachedAnnotation
);
1490
if (
_attachedAnnotation
!= null)
1571
Debug.Assert(
_attachedAnnotation
!= null, "This property should never be acccessed from outside of CAF");
1574
Point anchor =
_attachedAnnotation
.AnchorPoint;
System\Windows\Controls\StickyNote.cs (8)
504
if (
_attachedAnnotation
!= null)
505
return
_attachedAnnotation
;
1061
Invariant.Assert(
_attachedAnnotation
!= null, "AttachedAnnotation is null.");
1062
Invariant.Assert(
_attachedAnnotation
.Store != null, "AttachedAnnotation's Store is null.");
1064
_attachedAnnotation
.Store.DeleteAnnotation(
_attachedAnnotation
.Annotation.Id);
1380
DependencyObject parent =
_attachedAnnotation
.Parent;
1755
args.CanExecute = snc.
_attachedAnnotation
!= null;