1 implementation of IAttachedAnnotation
PresentationFramework (1)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
34internal class AttachedAnnotation : IAttachedAnnotation
135 references to IAttachedAnnotation
PresentationFramework (135)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
80public override IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations) 119public override IList<IAttachedAnnotation> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
81public override IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (9)
281public IList<IAttachedAnnotation> ProcessAnnotations(DependencyObject node) 286IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(); 516internal IList<IAttachedAnnotation> ProcessSubTree(DependencyObject subTree) 844IList<IAttachedAnnotation> attachedAnnotations = processor.PreProcessNode(dependencyObject, out calledProcessAnnotations); 871IList<IAttachedAnnotation> attachedAnnotations = processor.PostProcessNode(dependencyObject, childrenCalledProcessAnnotations, out calledProcessAnnotations); 1274public List<IAttachedAnnotation> AttachedAnnotations 1320private List<IAttachedAnnotation> _attachedAnnotations = new List<IAttachedAnnotation>();
MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (2)
80public abstract IList<IAttachedAnnotation> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations); 95public virtual IList<IAttachedAnnotation> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\AnnotationMap.cs (15)
28internal void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 30List<IAttachedAnnotation> list = null; 33list = new List<IAttachedAnnotation>(1); 44internal void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 46List<IAttachedAnnotation> list = null; 74internal List<IAttachedAnnotation> GetAttachedAnnotations(Guid annotationId) 76List<IAttachedAnnotation> list = null; 92internal List<IAttachedAnnotation> GetAllAttachedAnnotations() 94List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(_annotationIdToAttachedAnnotations.Keys.Count); 98List<IAttachedAnnotation> list = _annotationIdToAttachedAnnotations[annId]; 112private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>(); 115private static readonly List<IAttachedAnnotation> _emptyList = new List<IAttachedAnnotation>(0);
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
88internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action, IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 122public IAttachedAnnotation AttachedAnnotation { get { return _attachedAnnotation; } } 158internal static AttachedAnnotationChangedEventArgs Added(IAttachedAnnotation attachedAnnotation) 170internal static AttachedAnnotationChangedEventArgs Loaded(IAttachedAnnotation attachedAnnotation) 182internal static AttachedAnnotationChangedEventArgs Deleted(IAttachedAnnotation attachedAnnotation) 194internal static AttachedAnnotationChangedEventArgs Unloaded(IAttachedAnnotation attachedAnnotation) 208internal static AttachedAnnotationChangedEventArgs Modified(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 226private IAttachedAnnotation _attachedAnnotation;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (8)
58internal void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation, bool reorder) 75internal void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation, bool reorder) 143private IAnnotationComponent FindComponent(IAttachedAnnotation attachedAnnotation) 165private void AddComponent(IAttachedAnnotation attachedAnnotation, IAnnotationComponent component, bool reorder) 209private void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 270private void AddToAttachedAnnotations(IAttachedAnnotation attachedAnnotation, IAnnotationComponent component) 294private Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>>();
MS\Internal\Annotations\Component\HighlightComponent.cs (5)
222public void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 270public void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 311public void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 514private ITextContainer CheckInputData(IAttachedAnnotation attachedAnnotation) 657private IAttachedAnnotation _attachedAnnotation;
MS\Internal\Annotations\Component\IAnnotationComponent.cs (3)
78void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation); 84void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation); 92void ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (6)
206public void AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 236public void RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 263public 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)
914void IAnnotationComponent.AddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 938void IAnnotationComponent.RemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 966void IAnnotationComponent.ModifyAttachedAnnotation(IAttachedAnnotation attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel) 1291private void SetAnnotation(IAttachedAnnotation attachedAnnotation) 1636private IAttachedAnnotation _attachedAnnotation;
System\Windows\Annotations\AnnotationComponentChooser.cs (1)
60public IAnnotationComponent ChooseAnnotationComponent(IAttachedAnnotation attachedAnnotation)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
338IList<IAttachedAnnotation> attachedAnnotations = ProcessAnnotations(dpv); 341foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 364private IList<IAttachedAnnotation> ProcessAnnotations(DocumentPageView dpv) 368IList<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>();
System\Windows\Annotations\AnnotationHelper.cs (14)
212IList<IAttachedAnnotation> attachedAnnotations = null; 573private static IList<IAttachedAnnotation> GetSpannedAnnotations(AnnotationService service) 617IList<IAttachedAnnotation> attachedAnnotations = null; 680private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection) 700IList<IAttachedAnnotation> attachedAnnotations = null; 730private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage) 737List<IAttachedAnnotation> attachedAnnotations = null; 788private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 791List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count); 830IList<IAttachedAnnotation> attachedAnnotations = GetSpannedAnnotations(service); 833foreach (IAttachedAnnotation attachedAnnot in attachedAnnotations) 981IList<IAttachedAnnotation> spannedAnnots = GetSpannedAnnotations(service); 984foreach (IAttachedAnnotation attachedAnnotation in spannedAnnots)
System\Windows\Annotations\AnnotationService.cs (51)
377IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(element); 436internal IList<IAttachedAnnotation> GetAttachedAnnotations() 794IList<IAttachedAnnotation> attachedAnnotations = LocatorManager.ProcessSubTree(_root); 814List<IAttachedAnnotation> annotations = obj as List<IAttachedAnnotation>; 821List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 842private bool AttachedAnchorsEqual(IAttachedAnnotation firstAttachedAnnotation, IAttachedAnnotation secondAttachedAnnotation) 878private void LoadAnnotationsFromList(IList<IAttachedAnnotation> attachedAnnotations) 884IAttachedAnnotation matchingAnnotation = null; 885foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 938foreach (IAttachedAnnotation attachedAnnotation in attachedAnnotations) 979IList<IAttachedAnnotation> attachedAnnotations = null; 980IList<IAttachedAnnotation> dirtyAnnotations = new List<IAttachedAnnotation>(); 985List<IAttachedAnnotation> existingAnnotations = _annotationMap.GetAllAttachedAnnotations(); 988IAttachedAnnotation match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations); 1009foreach (IAttachedAnnotation annotation in dirtyAnnotations) 1166private IAttachedAnnotation FindAnnotationInList(IAttachedAnnotation attachedAnnotation, IList<IAttachedAnnotation> list) 1168foreach (IAttachedAnnotation aa in list) 1191List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(); 1192DescendentsWalker<List<IAttachedAnnotation>> walker = new DescendentsWalker<List<IAttachedAnnotation>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result); 1206private bool GetAttachedAnnotationsFor(DependencyObject node, List<IAttachedAnnotation> result, bool visitedViaVisualTree) 1211List<IAttachedAnnotation> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1327IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotationId); 1333IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1338foreach (IAttachedAnnotation attachedAnnotation in list) 1391IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1396IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1399foreach (IAttachedAnnotation attachedAnnotation in list) 1432IList<IAttachedAnnotation> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id); 1433IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1436foreach (IAttachedAnnotation attachedAnnotation in list) 1490private void DoAddAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1497List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1501list = new List<IAttachedAnnotation>(1); 1516private void DoRemoveAttachedAnnotation(IAttachedAnnotation attachedAnnotation) 1525List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1545private void FullyResolveAnchor(IAttachedAnnotation attachedAnnotation) 1746private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<IAttachedAnnotation>), typeof(AnnotationService));