5 instantiations of AttachedAnnotationChangedEventArgs
PresentationFramework (5)
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (5)
144return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Added, attachedAnnotation, null, AttachmentLevel.Unresolved); 156return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Loaded, attachedAnnotation, null, AttachmentLevel.Unresolved); 168return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Deleted, attachedAnnotation, null, AttachmentLevel.Unresolved); 180return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.Unloaded, attachedAnnotation, null, AttachmentLevel.Unresolved); 194return new AttachedAnnotationChangedEventArgs(AttachedAnnotationAction.AnchorModified, attachedAnnotation, previousAttachedAnchor, previousAttachmentLevel);
35 references to AttachedAnnotationChangedEventArgs
PresentationFramework (35)
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (6)
140internal static AttachedAnnotationChangedEventArgs Added(IAttachedAnnotation attachedAnnotation) 152internal static AttachedAnnotationChangedEventArgs Loaded(IAttachedAnnotation attachedAnnotation) 164internal static AttachedAnnotationChangedEventArgs Deleted(IAttachedAnnotation attachedAnnotation) 176internal static AttachedAnnotationChangedEventArgs Unloaded(IAttachedAnnotation attachedAnnotation) 190internal static AttachedAnnotationChangedEventArgs Modified(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 218internal delegate void AttachedAnnotationChangedEventHandler(object sender, AttachedAnnotationChangedEventArgs e);
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
105private void AttachedAnnotationUpdateEventHandler(object sender, AttachedAnnotationChangedEventArgs e)
System\Windows\Annotations\AnnotationService.cs (28)
861List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 883eventsToFire.Add(AttachedAnnotationChangedEventArgs.Modified(matchingAnnotation, 891eventsToFire.Add(AttachedAnnotationChangedEventArgs.Unloaded(attachedAnnotation)); 899eventsToFire.Add(AttachedAnnotationChangedEventArgs.Loaded(attachedAnnotation)); 915List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 920eventsToFire.Add(AttachedAnnotationChangedEventArgs.Unloaded(attachedAnnotation)); 1239AttachedAnnotationChangedEventArgs newArgs = null; 1280List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(annotation.Anchors.Count); 1287AttachedAnnotationChangedEventArgs args = AnchorAdded(annotation, anchor); 1312List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(list.Length); 1317eventsToFire.Add(AttachedAnnotationChangedEventArgs.Deleted(attachedAnnotation)); 1330private AttachedAnnotationChangedEventArgs AnchorAdded(Annotation annotation, AnnotationResource anchor) 1334AttachedAnnotationChangedEventArgs args = null; 1349args = AttachedAnnotationChangedEventArgs.Added(attachedAnnotation); 1361private AttachedAnnotationChangedEventArgs AnchorRemoved(Annotation annotation, AnnotationResource anchor) 1365AttachedAnnotationChangedEventArgs args = null; 1380args = AttachedAnnotationChangedEventArgs.Deleted(attachedAnnotation); 1396private AttachedAnnotationChangedEventArgs AnchorModified(Annotation annotation, AnnotationResource anchor) 1400AttachedAnnotationChangedEventArgs args = null; 1431args = AttachedAnnotationChangedEventArgs.Modified(attachedAnnotation, oldAttachedAnchor, oldAttachmentLevel); 1438args = AttachedAnnotationChangedEventArgs.Deleted(attachedAnnotation); 1456args = AttachedAnnotationChangedEventArgs.Added(attachedAnnotation); 1616private void FireEvents(List<AttachedAnnotationChangedEventArgs> eventsToFire) 1622foreach (AttachedAnnotationChangedEventArgs args in eventsToFire)