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)
53internal void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation, bool reorder) 70internal void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation, bool reorder) 137private IAnnotationComponent FindComponent(IAttachedAnnotation attachedAnnotation) 159private void AddComponent(IAttachedAnnotation attachedAnnotation, IAnnotationComponent component, bool reorder) 203private void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 264private void AddToAttachedAnnotations(IAttachedAnnotation attachedAnnotation, IAnnotationComponent component) 288private 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) 1106TextAnchor firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1107TextAnchor secondAnchor = ((IAttachedAnnotation)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1175private 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) 1280private void SetAnnotation(IAttachedAnnotation attachedAnnotation) 1625private 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)
363IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(element); 422internal IList<IAttachedAnnotation> GetAttachedAnnotations() 776IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(_root); 796List<IAttachedAnnotation> annotations = obj as List<IAttachedAnnotation>; 803List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 824private bool AttachedAnchorsEqual(IAttachedAnnotation firstAttachedAnnotation, IAttachedAnnotation secondAttachedAnnotation) 860private void LoadAnnotationsFromList(IList<IAttachedAnnotation> attachedAnnotations) 866IAttachedAnnotation matchingAnnotation = null; 867foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 920foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 961IList<IAttachedAnnotation> attachedAnnotations = null; 962IList<IAttachedAnnotation> dirtyAnnotations = new List<IAttachedAnnotation>(); 967List<IAttachedAnnotation> existingAnnotations = _annotationMap.GetAllAttachedAnnotations(); 970IAttachedAnnotation match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations); 991foreach (IAttachedAnnotation annotation in dirtyAnnotations) 1148private IAttachedAnnotation FindAnnotationInList(IAttachedAnnotation attachedAnnotation, IList<IAttachedAnnotation> list) 1150foreach (IAttachedAnnotation aa in list) 1173List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(); 1174DescendentsWalker<List<IAttachedAnnotation>> walker = new DescendentsWalker<List<IAttachedAnnotation>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result); 1188private bool GetAttachedAnnotationsFor(DependencyObject node, List<IAttachedAnnotation> result, bool visitedViaVisualTree) 1193List<IAttachedAnnotation> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1309IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotationId); 1315IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1320foreach (IAttachedAnnotation attachedAnnotation in list) 1373IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1378IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1381foreach (IAttachedAnnotation attachedAnnotation in list) 1414IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1415IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1418foreach (IAttachedAnnotation attachedAnnotation in list) 1472private void DoAddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1479List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1483list = new List<IAttachedAnnotation>(1); 1498private void DoRemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1507List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1527private void FullyResolveAnchor(IAttachedAnnotation attachedAnnotation) 1727private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<IAttachedAnnotation>), typeof(AnnotationService));