2 writes to _attachedAnnotation
PresentationFramework (2)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
1342_attachedAnnotation = attachedAnnotation; 1378_attachedAnnotation = null;
32 references to _attachedAnnotation
PresentationFramework (32)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (24)
930if (_attachedAnnotation == null) 957if (attachedAnnotation == _attachedAnnotation) 997if (_attachedAnnotation != null) 999annotations.Add(_attachedAnnotation); 1014if (_attachedAnnotation != null) 1022&& _attachedAnnotation.Parent is DocumentPageHost) 1031Point anchor = _attachedAnnotation.AnchorPoint; 1114return _attachedAnnotation != null ? _attachedAnnotation.Parent as UIElement : null; 1257_attachedAnnotation != null && _attachedAnnotation.Parent is DocumentPageHost); 1276Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1290Debug.Assert(_attachedAnnotation != null && _attachedAnnotation.Annotation == args.Annotation); 1343_attachedAnnotation.Annotation.CargoChanged += new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1344_attachedAnnotation.Annotation.AuthorChanged += new AnnotationAuthorChangedEventHandler(OnAuthorUpdated); 1355if ((_attachedAnnotation.AttachmentLevel & AttachmentLevel.StartPortion) == 0) 1373_attachedAnnotation.Annotation.CargoChanged -= new AnnotationResourceChangedEventHandler(OnAnnotationUpdated); 1374_attachedAnnotation.Annotation.AuthorChanged -= new AnnotationAuthorChangedEventHandler(OnAuthorUpdated); 1375_anchor.RemoveAttachedAnnotation(_attachedAnnotation); 1506if (_attachedAnnotation != null) 1587Debug.Assert(_attachedAnnotation != null, "This property should never be acccessed from outside of CAF"); 1590Point anchor = _attachedAnnotation.AnchorPoint;
src\Framework\System\Windows\Controls\StickyNote.cs (8)
514if (_attachedAnnotation != null) 515return _attachedAnnotation; 1071Invariant.Assert(_attachedAnnotation != null, "AttachedAnnotation is null."); 1072Invariant.Assert(_attachedAnnotation.Store != null, "AttachedAnnotation's Store is null."); 1074_attachedAnnotation.Store.DeleteAnnotation(_attachedAnnotation.Annotation.Id); 1390DependencyObject parent = _attachedAnnotation.Parent; 1792args.CanExecute = snc._attachedAnnotation != null;