1 implementation of IAttachedAnnotation
PresentationFramework (1)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
28internal class AttachedAnnotation : IAttachedAnnotation
135 references to IAttachedAnnotation
PresentationFramework (135)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
60public override IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations) 99public override IList<IAttachedAnnotation> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
74public override IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (9)
259public IList<IAttachedAnnotation> ProcessAnnotations(DependencyObject node) 264IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(); 493internal IList<IAttachedAnnotation> ProcessSubTree(DependencyObject subTree) 821IList<IAttachedAnnotation> attachedAnnotations = processor.PreProcessNode(dependencyObject, out calledProcessAnnotations); 848IList<IAttachedAnnotation> attachedAnnotations = processor.PostProcessNode(dependencyObject, childrenCalledProcessAnnotations, out calledProcessAnnotations); 1253public List<IAttachedAnnotation> AttachedAnnotations 1299private List<IAttachedAnnotation> _attachedAnnotations = new List<IAttachedAnnotation>();
MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (2)
73public abstract IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations); 88public virtual IList<IAttachedAnnotation> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\AnnotationMap.cs (15)
22internal void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 24List<IAttachedAnnotation> list = null; 27list = new List<IAttachedAnnotation>(1); 38internal void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 40List<IAttachedAnnotation> list = null; 68internal List<IAttachedAnnotation> GetAttachedAnnotations(Guid annotationId) 70List<IAttachedAnnotation> list = null; 86internal List<IAttachedAnnotation> GetAllAttachedAnnotations() 88List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(_annotationIdToAttachedAnnotations.Keys.Count); 92List<IAttachedAnnotation> list = _annotationIdToAttachedAnnotations[annId]; 106private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>(); 109private static readonly List<IAttachedAnnotation> _emptyList = new List<IAttachedAnnotation>(0);
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
71internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action, IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 105public IAttachedAnnotation AttachedAnnotation { get { return _attachedAnnotation; } } 141internal static AttachedAnnotationChangedEventArgs Added(IAttachedAnnotation attachedAnnotation) 153internal static AttachedAnnotationChangedEventArgs Loaded(IAttachedAnnotation attachedAnnotation) 165internal static AttachedAnnotationChangedEventArgs Deleted(IAttachedAnnotation attachedAnnotation) 177internal static AttachedAnnotationChangedEventArgs Unloaded(IAttachedAnnotation attachedAnnotation) 191internal static AttachedAnnotationChangedEventArgs Modified(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 209private IAttachedAnnotation _attachedAnnotation;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (8)
54internal void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation, bool reorder) 71internal void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation, bool reorder) 139private IAnnotationComponent FindComponent(IAttachedAnnotation attachedAnnotation) 161private void AddComponent(IAttachedAnnotation attachedAnnotation, IAnnotationComponent component, bool reorder) 205private void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 266private void AddToAttachedAnnotations(IAttachedAnnotation attachedAnnotation, IAnnotationComponent component) 290private Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>>();
MS\Internal\Annotations\Component\HighlightComponent.cs (5)
214public void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 262public void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 303public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 506private ITextContainer CheckInputData(IAttachedAnnotation attachedAnnotation) 649private IAttachedAnnotation _attachedAnnotation;
MS\Internal\Annotations\Component\IAnnotationComponent.cs (3)
76void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation); 82void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation); 90void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (6)
200public void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 230public void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 257public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1109TextAnchor firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1110TextAnchor secondAnchor = ((IAttachedAnnotation)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1178private IAttachedAnnotation _attachedAnnotation;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (5)
904void IAnnotationComponent.AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 928void IAnnotationComponent.RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 956void IAnnotationComponent.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1281private void SetAnnotation(IAttachedAnnotation attachedAnnotation) 1626private IAttachedAnnotation _attachedAnnotation;
System\Windows\Annotations\AnnotationComponentChooser.cs (1)
56public IAnnotationComponent ChooseAnnotationComponent(IAttachedAnnotation attachedAnnotation)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
337IList<IAttachedAnnotation> attachedAnnotations = ProcessAnnotations(dpv); 340foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 363private IList<IAttachedAnnotation> ProcessAnnotations(DocumentPageView dpv) 367IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>();
System\Windows\Annotations\AnnotationHelper.cs (14)
198IList<IAttachedAnnotation> attachedAnnotations = null; 559private static IList<IAttachedAnnotation> GetSpannedAnnotations(AnnotationService service) 603IList<IAttachedAnnotation> attachedAnnotations = null; 666private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection) 686IList<IAttachedAnnotation> attachedAnnotations = null; 716private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage) 723List<IAttachedAnnotation> attachedAnnotations = null; 774private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 777List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count); 816IList<IAttachedAnnotation> attachedAnnotations = GetSpannedAnnotations(service); 819foreach (IAttachedAnnotation attachedAnnot in attachedAnnotations) 967IList<IAttachedAnnotation> spannedAnnots = GetSpannedAnnotations(service); 970foreach (IAttachedAnnotation attachedAnnotation in spannedAnnots)
System\Windows\Annotations\AnnotationService.cs (51)
364IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(element); 423internal IList<IAttachedAnnotation> GetAttachedAnnotations() 777IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(_root); 797List<IAttachedAnnotation> annotations = obj as List<IAttachedAnnotation>; 804List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 825private bool AttachedAnchorsEqual(IAttachedAnnotation firstAttachedAnnotation, IAttachedAnnotation secondAttachedAnnotation) 861private void LoadAnnotationsFromList(IList<IAttachedAnnotation> attachedAnnotations) 867IAttachedAnnotation matchingAnnotation = null; 868foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 921foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 962IList<IAttachedAnnotation> attachedAnnotations = null; 963IList<IAttachedAnnotation> dirtyAnnotations = new List<IAttachedAnnotation>(); 968List<IAttachedAnnotation> existingAnnotations = _annotationMap.GetAllAttachedAnnotations(); 971IAttachedAnnotation match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations); 992foreach (IAttachedAnnotation annotation in dirtyAnnotations) 1149private IAttachedAnnotation FindAnnotationInList(IAttachedAnnotation attachedAnnotation, IList<IAttachedAnnotation> list) 1151foreach (IAttachedAnnotation aa in list) 1174List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(); 1175DescendentsWalker<List<IAttachedAnnotation>> walker = new DescendentsWalker<List<IAttachedAnnotation>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result); 1189private bool GetAttachedAnnotationsFor(DependencyObject node, List<IAttachedAnnotation> result, bool visitedViaVisualTree) 1194List<IAttachedAnnotation> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1310IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotationId); 1316IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1321foreach (IAttachedAnnotation attachedAnnotation in list) 1374IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1379IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1382foreach (IAttachedAnnotation attachedAnnotation in list) 1415IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1416IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1419foreach (IAttachedAnnotation attachedAnnotation in list) 1473private void DoAddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1480List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1484list = new List<IAttachedAnnotation>(1); 1499private void DoRemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1508List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1528private void FullyResolveAnchor(IAttachedAnnotation attachedAnnotation) 1728private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<IAttachedAnnotation>), typeof(AnnotationService));