4 instantiations of AnnotationResource
PresentationFramework (4)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
503cargo = new AnnotationResource(cargoName); 1337AnnotationResource cargo = new AnnotationResource(SNBConstants.MetaResourceName);
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (2)
1051AnnotationResource cargo = new AnnotationResource(HighlightComponent.HighlightResourceName); 1083AnnotationResource anchor = new AnnotationResource();
52 references to AnnotationResource
PresentationFramework (52)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (4)
56internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel) 72internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 140public AnnotationResource Anchor { get { return _anchor; } } 312private AnnotationResource _anchor;
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
337foreach (AnnotationResource anchor in annotation.Anchors)
src\Framework\MS\Internal\Annotations\AnnotationResourceCollection.cs (5)
33internal sealed class AnnotationResourceCollection : AnnotationObservableCollection<AnnotationResource> 84List<AnnotationResource> list = new List<AnnotationResource>(this); 99protected override void ProtectedSetItem(int index, AnnotationResource item) 117void OnCollectionCleared(IEnumerable<AnnotationResource> list)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (2)
499ICollection<AnnotationResource> cargos = annot.Cargos; 503foreach (AnnotationResource cargo in cargos)
src\Framework\MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (1)
135foreach (AnnotationResource resource in annotation.Anchors)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (9)
417private AnnotationResource FindCargo(string cargoName) 419foreach (AnnotationResource cargo in _annotation.Cargos) 446AnnotationResource cargo = FindCargo(GetCargoName(token)); 475SNCAnnotation annotation, XmlToken token, out AnnotationResource cargo, out XmlElement root, out bool newCargo, out bool newRoot) 638private static XmlElement FindRootXmlElement(XmlToken token, AnnotationResource cargo) 687private static object FindContent(XmlToken token, AnnotationResource cargo) 749AnnotationResource cargo = null; 807AnnotationResource cargo; 1337AnnotationResource cargo = new AnnotationResource(SNBConstants.MetaResourceName);
src\Framework\System\Windows\Annotations\AnchorInfo.cs (1)
40AnnotationResource Anchor { get; }
src\Framework\System\Windows\Annotations\Annotation.cs (16)
258foreach (AnnotationResource anchor in _anchors) 271foreach (AnnotationResource cargo in _cargos) 326AnnotationResource anchor = (AnnotationResource)ResourceSerializer.Deserialize(reader); 341AnnotationResource cargo = (AnnotationResource)ResourceSerializer.Deserialize(reader); 502public Collection<AnnotationResource> Anchors 517public Collection<AnnotationResource> Cargos 612_ResourceSerializer = new Serializer(typeof(AnnotationResource)); 722FireResourceEvent((AnnotationResource)sender, AnnotationAction.Modified, CargoChanged); 746foreach (AnnotationResource cargo in e.OldItems) 767foreach (AnnotationResource cargo in changedItems) 776FireResourceEvent((AnnotationResource)sender, AnnotationAction.Modified, AnchorChanged); 800foreach (AnnotationResource anchor in e.OldItems) 821foreach (AnnotationResource anchor in changedItems) 902private void FireResourceEvent(AnnotationResource resource, AnnotationAction action, AnnotationResourceChangedEventHandler handlers)
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
399foreach (AnnotationResource anchor in annotation.Anchors)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (2)
1051AnnotationResource cargo = new AnnotationResource(HighlightComponent.HighlightResourceName); 1083AnnotationResource anchor = new AnnotationResource();
src\Framework\System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (3)
55public AnnotationResourceChangedEventArgs(Annotation annotation, AnnotationAction action, AnnotationResource resource) 99public AnnotationResource Resource 136private AnnotationResource _resource;
src\Framework\System\Windows\Annotations\AnnotationService.cs (5)
1346foreach (AnnotationResource anchor in annotation.Anchors) 1394private AttachedAnnotationChangedEventArgs AnchorAdded(Annotation annotation, AnnotationResource anchor) 1425private AttachedAnnotationChangedEventArgs AnchorRemoved(Annotation annotation, AnnotationResource anchor) 1460private AttachedAnnotationChangedEventArgs AnchorModified(Annotation annotation, AnnotationResource anchor) 1656private object FindAttachedAnchor(AnnotationResource anchor, out AttachmentLevel attachmentLevel)
src\Framework\System\Windows\Annotations\LocatorGroup.cs (2)
128AnnotationResource.ListSerializer.Serialize(writer, locator); 161ContentLocator locator = (ContentLocator)AnnotationResource.ListSerializer.Deserialize(reader);