1 implementation of IAttachedAnnotation
PresentationFramework (1)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
28
internal class AttachedAnnotation :
IAttachedAnnotation
135 references to IAttachedAnnotation
PresentationFramework (135)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
60
public override IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
99
public override IList<
IAttachedAnnotation
> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
74
public override IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (9)
259
public IList<
IAttachedAnnotation
> ProcessAnnotations(DependencyObject node)
264
IList<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>();
493
internal IList<
IAttachedAnnotation
> ProcessSubTree(DependencyObject subTree)
821
IList<
IAttachedAnnotation
> attachedAnnotations = processor.PreProcessNode(dependencyObject, out calledProcessAnnotations);
848
IList<
IAttachedAnnotation
> attachedAnnotations = processor.PostProcessNode(dependencyObject, childrenCalledProcessAnnotations, out calledProcessAnnotations);
1253
public List<
IAttachedAnnotation
> AttachedAnnotations
1299
private List<
IAttachedAnnotation
> _attachedAnnotations = new List<
IAttachedAnnotation
>();
MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (2)
73
public abstract IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations);
88
public virtual IList<
IAttachedAnnotation
> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\AnnotationMap.cs (15)
22
internal void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
24
List<
IAttachedAnnotation
> list = null;
27
list = new List<
IAttachedAnnotation
>(1);
38
internal void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
40
List<
IAttachedAnnotation
> list = null;
68
internal List<
IAttachedAnnotation
> GetAttachedAnnotations(Guid annotationId)
70
List<
IAttachedAnnotation
> list = null;
86
internal List<
IAttachedAnnotation
> GetAllAttachedAnnotations()
88
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>(_annotationIdToAttachedAnnotations.Keys.Count);
92
List<
IAttachedAnnotation
> list = _annotationIdToAttachedAnnotations[annId];
106
private Dictionary<Guid, List<
IAttachedAnnotation
>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<
IAttachedAnnotation
>>();
109
private static readonly List<
IAttachedAnnotation
> _emptyList = new List<
IAttachedAnnotation
>(0);
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
71
internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action,
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
105
public
IAttachedAnnotation
AttachedAnnotation { get { return _attachedAnnotation; } }
141
internal static AttachedAnnotationChangedEventArgs Added(
IAttachedAnnotation
attachedAnnotation)
153
internal static AttachedAnnotationChangedEventArgs Loaded(
IAttachedAnnotation
attachedAnnotation)
165
internal static AttachedAnnotationChangedEventArgs Deleted(
IAttachedAnnotation
attachedAnnotation)
177
internal static AttachedAnnotationChangedEventArgs Unloaded(
IAttachedAnnotation
attachedAnnotation)
191
internal static AttachedAnnotationChangedEventArgs Modified(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
209
private
IAttachedAnnotation
_attachedAnnotation;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (8)
54
internal void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, bool reorder)
71
internal void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, bool reorder)
139
private IAnnotationComponent FindComponent(
IAttachedAnnotation
attachedAnnotation)
161
private void AddComponent(
IAttachedAnnotation
attachedAnnotation, IAnnotationComponent component, bool reorder)
205
private void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
266
private void AddToAttachedAnnotations(
IAttachedAnnotation
attachedAnnotation, IAnnotationComponent component)
290
private Dictionary<
IAttachedAnnotation
, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<
IAttachedAnnotation
, IList<IAnnotationComponent>>();
MS\Internal\Annotations\Component\HighlightComponent.cs (5)
214
public void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
262
public void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
303
public void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
506
private ITextContainer CheckInputData(
IAttachedAnnotation
attachedAnnotation)
649
private
IAttachedAnnotation
_attachedAnnotation;
MS\Internal\Annotations\Component\IAnnotationComponent.cs (3)
76
void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation);
82
void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation);
90
void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (6)
200
public void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
230
public void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
257
public void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
1109
TextAnchor firstAnchor = ((
IAttachedAnnotation
)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
1110
TextAnchor secondAnchor = ((
IAttachedAnnotation
)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
1178
private
IAttachedAnnotation
_attachedAnnotation;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (5)
904
void IAnnotationComponent.AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
928
void IAnnotationComponent.RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
956
void IAnnotationComponent.ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
1281
private void SetAnnotation(
IAttachedAnnotation
attachedAnnotation)
1626
private
IAttachedAnnotation
_attachedAnnotation;
System\Windows\Annotations\AnnotationComponentChooser.cs (1)
56
public IAnnotationComponent ChooseAnnotationComponent(
IAttachedAnnotation
attachedAnnotation)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
337
IList<
IAttachedAnnotation
> attachedAnnotations = ProcessAnnotations(dpv);
340
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
363
private IList<
IAttachedAnnotation
> ProcessAnnotations(DocumentPageView dpv)
367
IList<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>();
System\Windows\Annotations\AnnotationHelper.cs (14)
198
IList<
IAttachedAnnotation
> attachedAnnotations = null;
559
private static IList<
IAttachedAnnotation
> GetSpannedAnnotations(AnnotationService service)
603
IList<
IAttachedAnnotation
> attachedAnnotations = null;
666
private static IList<
IAttachedAnnotation
> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection)
686
IList<
IAttachedAnnotation
> attachedAnnotations = null;
716
private static IList<
IAttachedAnnotation
> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage)
723
List<
IAttachedAnnotation
> attachedAnnotations = null;
774
private static List<
IAttachedAnnotation
> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations)
777
List<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>(annotations.Count);
816
IList<
IAttachedAnnotation
> attachedAnnotations = GetSpannedAnnotations(service);
819
foreach (
IAttachedAnnotation
attachedAnnot in attachedAnnotations)
967
IList<
IAttachedAnnotation
> spannedAnnots = GetSpannedAnnotations(service);
970
foreach (
IAttachedAnnotation
attachedAnnotation in spannedAnnots)
System\Windows\Annotations\AnnotationService.cs (51)
364
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(element);
423
internal IList<
IAttachedAnnotation
> GetAttachedAnnotations()
777
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(_root);
797
List<
IAttachedAnnotation
> annotations = obj as List<
IAttachedAnnotation
>;
804
List<
IAttachedAnnotation
> leftover = new List<
IAttachedAnnotation
>(annotations.Count);
825
private bool AttachedAnchorsEqual(
IAttachedAnnotation
firstAttachedAnnotation,
IAttachedAnnotation
secondAttachedAnnotation)
861
private void LoadAnnotationsFromList(IList<
IAttachedAnnotation
> attachedAnnotations)
867
IAttachedAnnotation
matchingAnnotation = null;
868
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
921
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
962
IList<
IAttachedAnnotation
> attachedAnnotations = null;
963
IList<
IAttachedAnnotation
> dirtyAnnotations = new List<
IAttachedAnnotation
>();
968
List<
IAttachedAnnotation
> existingAnnotations = _annotationMap.GetAllAttachedAnnotations();
971
IAttachedAnnotation
match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations);
992
foreach (
IAttachedAnnotation
annotation in dirtyAnnotations)
1149
private
IAttachedAnnotation
FindAnnotationInList(
IAttachedAnnotation
attachedAnnotation, IList<
IAttachedAnnotation
> list)
1151
foreach (
IAttachedAnnotation
aa in list)
1174
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>();
1175
DescendentsWalker<List<
IAttachedAnnotation
>> walker = new DescendentsWalker<List<
IAttachedAnnotation
>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result);
1189
private bool GetAttachedAnnotationsFor(DependencyObject node, List<
IAttachedAnnotation
> result, bool visitedViaVisualTree)
1194
List<
IAttachedAnnotation
> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1310
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotationId);
1316
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1321
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1374
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1379
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1382
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1415
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1416
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1419
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1473
private void DoAddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1480
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1484
list = new List<
IAttachedAnnotation
>(1);
1499
private void DoRemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1508
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1528
private void FullyResolveAnchor(
IAttachedAnnotation
attachedAnnotation)
1728
private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<
IAttachedAnnotation
>), typeof(AnnotationService));