1 implementation of IAttachedAnnotation
PresentationFramework (1)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
27internal class AttachedAnnotation : IAttachedAnnotation
135 references to IAttachedAnnotation
PresentationFramework (135)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
59public override IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations) 98public override IList<IAttachedAnnotation> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
73public override IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (9)
258public IList<IAttachedAnnotation> ProcessAnnotations(DependencyObject node) 263IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(); 492internal IList<IAttachedAnnotation> ProcessSubTree(DependencyObject subTree) 820IList<IAttachedAnnotation> attachedAnnotations = processor.PreProcessNode(dependencyObject, out calledProcessAnnotations); 847IList<IAttachedAnnotation> attachedAnnotations = processor.PostProcessNode(dependencyObject, childrenCalledProcessAnnotations, out calledProcessAnnotations); 1252public List<IAttachedAnnotation> AttachedAnnotations 1298private List<IAttachedAnnotation> _attachedAnnotations = new List<IAttachedAnnotation>();
MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (2)
72public abstract IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations); 87public virtual IList<IAttachedAnnotation> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\AnnotationMap.cs (15)
21internal void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 23List<IAttachedAnnotation> list = null; 26list = new List<IAttachedAnnotation>(1); 37internal void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 39List<IAttachedAnnotation> list = null; 67internal List<IAttachedAnnotation> GetAttachedAnnotations(Guid annotationId) 69List<IAttachedAnnotation> list = null; 85internal List<IAttachedAnnotation> GetAllAttachedAnnotations() 87List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(_annotationIdToAttachedAnnotations.Keys.Count); 91List<IAttachedAnnotation> list = _annotationIdToAttachedAnnotations[annId]; 105private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>(); 108private static readonly List<IAttachedAnnotation> _emptyList = new List<IAttachedAnnotation>(0);
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
70internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action, IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 104public IAttachedAnnotation AttachedAnnotation { get { return _attachedAnnotation; } } 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) 208private IAttachedAnnotation _attachedAnnotation;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (8)
50internal void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation, bool reorder) 67internal void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation, bool reorder) 134private IAnnotationComponent FindComponent(IAttachedAnnotation attachedAnnotation) 156private void AddComponent(IAttachedAnnotation attachedAnnotation, IAnnotationComponent component, bool reorder) 200private void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 261private void AddToAttachedAnnotations(IAttachedAnnotation attachedAnnotation, IAnnotationComponent component) 285private Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>>();
MS\Internal\Annotations\Component\HighlightComponent.cs (5)
213public void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 261public void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 302public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 505private ITextContainer CheckInputData(IAttachedAnnotation attachedAnnotation) 648private IAttachedAnnotation _attachedAnnotation;
MS\Internal\Annotations\Component\IAnnotationComponent.cs (3)
75void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation); 81void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation); 89void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (6)
199public void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 229public void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 256public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1097TextAnchor firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1098TextAnchor secondAnchor = ((IAttachedAnnotation)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1166private IAttachedAnnotation _attachedAnnotation;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (5)
903void IAnnotationComponent.AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 927void IAnnotationComponent.RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 955void IAnnotationComponent.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1279private void SetAnnotation(IAttachedAnnotation attachedAnnotation) 1624private IAttachedAnnotation _attachedAnnotation;
System\Windows\Annotations\AnnotationComponentChooser.cs (1)
55public IAnnotationComponent ChooseAnnotationComponent(IAttachedAnnotation attachedAnnotation)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
336IList<IAttachedAnnotation> attachedAnnotations = ProcessAnnotations(dpv); 339foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 362private IList<IAttachedAnnotation> ProcessAnnotations(DocumentPageView dpv) 366IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>();
System\Windows\Annotations\AnnotationHelper.cs (14)
197IList<IAttachedAnnotation> attachedAnnotations = null; 558private static IList<IAttachedAnnotation> GetSpannedAnnotations(AnnotationService service) 602IList<IAttachedAnnotation> attachedAnnotations = null; 665private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection) 685IList<IAttachedAnnotation> attachedAnnotations = null; 715private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage) 722List<IAttachedAnnotation> attachedAnnotations = null; 773private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 776List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count); 815IList<IAttachedAnnotation> attachedAnnotations = GetSpannedAnnotations(service); 818foreach (IAttachedAnnotation attachedAnnot in attachedAnnotations) 966IList<IAttachedAnnotation> spannedAnnots = GetSpannedAnnotations(service); 969foreach (IAttachedAnnotation attachedAnnotation in spannedAnnots)
System\Windows\Annotations\AnnotationService.cs (51)
357IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(element); 416internal IList<IAttachedAnnotation> GetAttachedAnnotations() 767IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(_root); 787List<IAttachedAnnotation> annotations = obj as List<IAttachedAnnotation>; 794List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 815private bool AttachedAnchorsEqual(IAttachedAnnotation firstAttachedAnnotation, IAttachedAnnotation secondAttachedAnnotation) 851private void LoadAnnotationsFromList(IList<IAttachedAnnotation> attachedAnnotations) 857IAttachedAnnotation matchingAnnotation = null; 858foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 911foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 951IList<IAttachedAnnotation> attachedAnnotations = null; 952IList<IAttachedAnnotation> dirtyAnnotations = new List<IAttachedAnnotation>(); 957List<IAttachedAnnotation> existingAnnotations = _annotationMap.GetAllAttachedAnnotations(); 960IAttachedAnnotation match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations); 981foreach (IAttachedAnnotation annotation in dirtyAnnotations) 1135private IAttachedAnnotation FindAnnotationInList(IAttachedAnnotation attachedAnnotation, IList<IAttachedAnnotation> list) 1137foreach (IAttachedAnnotation aa in list) 1160List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(); 1161DescendentsWalker<List<IAttachedAnnotation>> walker = new DescendentsWalker<List<IAttachedAnnotation>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result); 1175private bool GetAttachedAnnotationsFor(DependencyObject node, List<IAttachedAnnotation> result, bool visitedViaVisualTree) 1180List<IAttachedAnnotation> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1296IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotationId); 1302IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1307foreach (IAttachedAnnotation attachedAnnotation in list) 1360IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1365IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1368foreach (IAttachedAnnotation attachedAnnotation in list) 1401IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1402IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1405foreach (IAttachedAnnotation attachedAnnotation in list) 1459private void DoAddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1466List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1470list = new List<IAttachedAnnotation>(1); 1485private void DoRemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1494List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1514private void FullyResolveAnchor(IAttachedAnnotation attachedAnnotation) 1713private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<IAttachedAnnotation>), typeof(AnnotationService));