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