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