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)
71public override IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations) 110public 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)
270public IList<IAttachedAnnotation> ProcessAnnotations(DependencyObject node) 275IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(); 505internal IList<IAttachedAnnotation> ProcessSubTree(DependencyObject subTree) 833IList<IAttachedAnnotation> attachedAnnotations = processor.PreProcessNode(dependencyObject, out calledProcessAnnotations); 860IList<IAttachedAnnotation> attachedAnnotations = processor.PostProcessNode(dependencyObject, childrenCalledProcessAnnotations, out calledProcessAnnotations); 1263public List<IAttachedAnnotation> AttachedAnnotations 1309private 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) 1103TextAnchor firstAnchor = ((IAttachedAnnotation)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1104TextAnchor secondAnchor = ((IAttachedAnnotation)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor; 1172private 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)
333IList<IAttachedAnnotation> attachedAnnotations = ProcessAnnotations(dpv); 336foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 359private IList<IAttachedAnnotation> ProcessAnnotations(DocumentPageView dpv) 363IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>();
System\Windows\Annotations\AnnotationHelper.cs (14)
200IList<IAttachedAnnotation> attachedAnnotations = null; 561private static IList<IAttachedAnnotation> GetSpannedAnnotations(AnnotationService service) 605IList<IAttachedAnnotation> attachedAnnotations = null; 668private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection) 688IList<IAttachedAnnotation> attachedAnnotations = null; 718private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage) 725List<IAttachedAnnotation> attachedAnnotations = null; 776private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 779List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count); 818IList<IAttachedAnnotation> attachedAnnotations = GetSpannedAnnotations(service); 821foreach (IAttachedAnnotation attachedAnnot in attachedAnnotations) 969IList<IAttachedAnnotation> spannedAnnots = GetSpannedAnnotations(service); 972foreach (IAttachedAnnotation attachedAnnotation in spannedAnnots)
System\Windows\Annotations\AnnotationService.cs (51)
365IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(element); 424internal IList<IAttachedAnnotation> GetAttachedAnnotations() 782IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(_root); 802List<IAttachedAnnotation> annotations = obj as List<IAttachedAnnotation>; 809List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 830private bool AttachedAnchorsEqual(IAttachedAnnotation firstAttachedAnnotation, IAttachedAnnotation secondAttachedAnnotation) 866private void LoadAnnotationsFromList(IList<IAttachedAnnotation> attachedAnnotations) 872IAttachedAnnotation matchingAnnotation = null; 873foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 926foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 967IList<IAttachedAnnotation> attachedAnnotations = null; 968IList<IAttachedAnnotation> dirtyAnnotations = new List<IAttachedAnnotation>(); 973List<IAttachedAnnotation> existingAnnotations = _annotationMap.GetAllAttachedAnnotations(); 976IAttachedAnnotation match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations); 997foreach (IAttachedAnnotation annotation in dirtyAnnotations) 1154private IAttachedAnnotation FindAnnotationInList(IAttachedAnnotation attachedAnnotation, IList<IAttachedAnnotation> list) 1156foreach (IAttachedAnnotation aa in list) 1179List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(); 1180DescendentsWalker<List<IAttachedAnnotation>> walker = new DescendentsWalker<List<IAttachedAnnotation>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result); 1194private bool GetAttachedAnnotationsFor(DependencyObject node, List<IAttachedAnnotation> result, bool visitedViaVisualTree) 1199List<IAttachedAnnotation> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1315IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotationId); 1321IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1326foreach (IAttachedAnnotation attachedAnnotation in list) 1379IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1384IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1387foreach (IAttachedAnnotation attachedAnnotation in list) 1420IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1421IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1424foreach (IAttachedAnnotation attachedAnnotation in list) 1478private void DoAddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1485List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1489list = new List<IAttachedAnnotation>(1); 1504private void DoRemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1513List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1533private void FullyResolveAnchor(IAttachedAnnotation attachedAnnotation) 1734private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<IAttachedAnnotation>), typeof(AnnotationService));