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