1 implementation of IAttachedAnnotation
PresentationFramework (1)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
38internal class AttachedAnnotation : IAttachedAnnotation
135 references to IAttachedAnnotation
PresentationFramework (135)
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
87public override IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations) 127public override IList<IAttachedAnnotation> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
src\Framework\MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
85public override IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (9)
296public IList<IAttachedAnnotation> ProcessAnnotations(DependencyObject node) 302IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(); 538internal IList<IAttachedAnnotation> ProcessSubTree(DependencyObject subTree) 870IList<IAttachedAnnotation> attachedAnnotations = processor.PreProcessNode(dependencyObject, out calledProcessAnnotations); 897IList<IAttachedAnnotation> attachedAnnotations = processor.PostProcessNode(dependencyObject, childrenCalledProcessAnnotations, out calledProcessAnnotations); 1300public List<IAttachedAnnotation> AttachedAnnotations 1346private List<IAttachedAnnotation> _attachedAnnotations = new List<IAttachedAnnotation>();
src\Framework\MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (2)
88public abstract IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations); 103public virtual IList<IAttachedAnnotation> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
src\Framework\MS\Internal\Annotations\AnnotationMap.cs (15)
34internal void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 36List<IAttachedAnnotation> list = null; 39list = new List<IAttachedAnnotation>(1); 50internal void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 52List<IAttachedAnnotation> list = null; 80internal List<IAttachedAnnotation> GetAttachedAnnotations(Guid annotationId) 82List<IAttachedAnnotation> list = null; 98internal List<IAttachedAnnotation> GetAllAttachedAnnotations() 100List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(_annotationIdToAttachedAnnotations.Keys.Count); 104List<IAttachedAnnotation> list = _annotationIdToAttachedAnnotations[annId]; 118private Dictionary<Guid, List<IAttachedAnnotation> > _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation> >(); 121private static readonly List<IAttachedAnnotation> _emptyList = new List<IAttachedAnnotation>(0);
src\Framework\MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
94internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action, IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 128public IAttachedAnnotation AttachedAnnotation { get { return _attachedAnnotation; } } 164internal static AttachedAnnotationChangedEventArgs Added(IAttachedAnnotation attachedAnnotation) 176internal static AttachedAnnotationChangedEventArgs Loaded(IAttachedAnnotation attachedAnnotation) 188internal static AttachedAnnotationChangedEventArgs Deleted(IAttachedAnnotation attachedAnnotation) 200internal static AttachedAnnotationChangedEventArgs Unloaded(IAttachedAnnotation attachedAnnotation) 214internal static AttachedAnnotationChangedEventArgs Modified(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 232private IAttachedAnnotation _attachedAnnotation;
src\Framework\MS\Internal\Annotations\Component\AnnotationComponentManager.cs (8)
63internal void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation, bool reorder) 80internal void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation, bool reorder) 148private IAnnotationComponent FindComponent(IAttachedAnnotation attachedAnnotation) 170private void AddComponent(IAttachedAnnotation attachedAnnotation, IAnnotationComponent component, bool reorder) 215private void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 276private void AddToAttachedAnnotations(IAttachedAnnotation attachedAnnotation, IAnnotationComponent component) 300private Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>>();
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (5)
232public void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 281public void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 327public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 535private ITextContainer CheckInputData(IAttachedAnnotation attachedAnnotation) 685private IAttachedAnnotation _attachedAnnotation;
src\Framework\MS\Internal\Annotations\Component\IAnnotationComponent.cs (3)
83void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation); 89void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation); 97void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (6)
215public void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 246public void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 277public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1132TextAnchor firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1133TextAnchor secondAnchor = ((IAttachedAnnotation)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1202private IAttachedAnnotation _attachedAnnotation;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (5)
923void IAnnotationComponent.AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 950void IAnnotationComponent.RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 982void IAnnotationComponent.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1306private void SetAnnotation(IAttachedAnnotation attachedAnnotation) 1653private IAttachedAnnotation _attachedAnnotation;
src\Framework\System\Windows\Annotations\AnnotationComponentChooser.cs (1)
65public IAnnotationComponent ChooseAnnotationComponent(IAttachedAnnotation attachedAnnotation)
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
348IList<IAttachedAnnotation> attachedAnnotations = ProcessAnnotations(dpv); 351foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 374private IList<IAttachedAnnotation> ProcessAnnotations(DocumentPageView dpv) 379IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>();
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (14)
218IList<IAttachedAnnotation> attachedAnnotations = null; 580private static IList<IAttachedAnnotation> GetSpannedAnnotations(AnnotationService service) 624IList<IAttachedAnnotation> attachedAnnotations = null; 687private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection) 707IList<IAttachedAnnotation> attachedAnnotations = null; 737private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage) 744List<IAttachedAnnotation> attachedAnnotations = null; 795private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 798List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count); 837IList<IAttachedAnnotation> attachedAnnotations = GetSpannedAnnotations(service); 840foreach (IAttachedAnnotation attachedAnnot in attachedAnnotations) 989IList<IAttachedAnnotation> spannedAnnots = GetSpannedAnnotations(service); 992foreach (IAttachedAnnotation attachedAnnotation in spannedAnnots)
src\Framework\System\Windows\Annotations\AnnotationService.cs (51)
397IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(element); 458internal IList<IAttachedAnnotation> GetAttachedAnnotations() 826IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(_root); 846List<IAttachedAnnotation> annotations = obj as List<IAttachedAnnotation>; 853List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 874private bool AttachedAnchorsEqual(IAttachedAnnotation firstAttachedAnnotation, IAttachedAnnotation secondAttachedAnnotation) 911private void LoadAnnotationsFromList(IList<IAttachedAnnotation> attachedAnnotations) 917IAttachedAnnotation matchingAnnotation = null; 918foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 972foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 1014IList<IAttachedAnnotation> attachedAnnotations = null; 1015IList<IAttachedAnnotation> dirtyAnnotations = new List<IAttachedAnnotation>(); 1020List<IAttachedAnnotation> existingAnnotations = _annotationMap.GetAllAttachedAnnotations(); 1023IAttachedAnnotation match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations); 1046foreach (IAttachedAnnotation annotation in dirtyAnnotations) 1206private IAttachedAnnotation FindAnnotationInList(IAttachedAnnotation attachedAnnotation, IList<IAttachedAnnotation> list) 1208foreach (IAttachedAnnotation aa in list) 1231List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(); 1232DescendentsWalker<List<IAttachedAnnotation>> walker = new DescendentsWalker<List<IAttachedAnnotation>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result); 1246private bool GetAttachedAnnotationsFor(DependencyObject node, List<IAttachedAnnotation> result, bool visitedViaVisualTree) 1251List<IAttachedAnnotation> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1367IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotationId); 1373IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1378foreach (IAttachedAnnotation attachedAnnotation in list) 1431IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1436IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1439foreach (IAttachedAnnotation attachedAnnotation in list) 1472IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1473IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1476foreach (IAttachedAnnotation attachedAnnotation in list) 1530private void DoAddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1537List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1541list = new List<IAttachedAnnotation>(1); 1556private void DoRemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1565List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1585private void FullyResolveAnchor(IAttachedAnnotation attachedAnnotation) 1788private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<IAttachedAnnotation>), typeof(AnnotationService));