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)
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; 1231_attachedAnnotation != null && _attachedAnnotation.Parent is DocumentPageHost); 1250Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1264Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1317_attachedAnnotation.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1318_attachedAnnotation.Annotation.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated); 1329if ((_attachedAnnotation.AttachmentLevel & AttachmentLevel.StartPortion) == 0) 1347_attachedAnnotation.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1348_attachedAnnotation.Annotation.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated); 1349_anchor.RemoveAttachedAnnotation(_attachedAnnotation); 1479if (_attachedAnnotation != null) 1560Debug.Assert(_attachedAnnotation != null, "This property should never be acccessed from outside of CAF"); 1563Point 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; 1713args.CanExecute = snc._attachedAnnotation != null;