1 implementation of IAttachedAnnotation
PresentationFramework (1)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
27
internal class AttachedAnnotation :
IAttachedAnnotation
135 references to IAttachedAnnotation
PresentationFramework (135)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
59
public override IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
98
public override IList<
IAttachedAnnotation
> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
73
public override IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (9)
258
public IList<
IAttachedAnnotation
> ProcessAnnotations(DependencyObject node)
263
IList<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>();
492
internal IList<
IAttachedAnnotation
> ProcessSubTree(DependencyObject subTree)
820
IList<
IAttachedAnnotation
> attachedAnnotations = processor.PreProcessNode(dependencyObject, out calledProcessAnnotations);
847
IList<
IAttachedAnnotation
> attachedAnnotations = processor.PostProcessNode(dependencyObject, childrenCalledProcessAnnotations, out calledProcessAnnotations);
1252
public List<
IAttachedAnnotation
> AttachedAnnotations
1298
private List<
IAttachedAnnotation
> _attachedAnnotations = new List<
IAttachedAnnotation
>();
MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (2)
72
public abstract IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations);
87
public virtual IList<
IAttachedAnnotation
> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\AnnotationMap.cs (15)
21
internal void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
23
List<
IAttachedAnnotation
> list = null;
26
list = new List<
IAttachedAnnotation
>(1);
37
internal void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
39
List<
IAttachedAnnotation
> list = null;
67
internal List<
IAttachedAnnotation
> GetAttachedAnnotations(Guid annotationId)
69
List<
IAttachedAnnotation
> list = null;
85
internal List<
IAttachedAnnotation
> GetAllAttachedAnnotations()
87
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>(_annotationIdToAttachedAnnotations.Keys.Count);
91
List<
IAttachedAnnotation
> list = _annotationIdToAttachedAnnotations[annId];
105
private Dictionary<Guid, List<
IAttachedAnnotation
>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<
IAttachedAnnotation
>>();
108
private static readonly List<
IAttachedAnnotation
> _emptyList = new List<
IAttachedAnnotation
>(0);
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
70
internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action,
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
104
public
IAttachedAnnotation
AttachedAnnotation { get { return _attachedAnnotation; } }
140
internal static AttachedAnnotationChangedEventArgs Added(
IAttachedAnnotation
attachedAnnotation)
152
internal static AttachedAnnotationChangedEventArgs Loaded(
IAttachedAnnotation
attachedAnnotation)
164
internal static AttachedAnnotationChangedEventArgs Deleted(
IAttachedAnnotation
attachedAnnotation)
176
internal static AttachedAnnotationChangedEventArgs Unloaded(
IAttachedAnnotation
attachedAnnotation)
190
internal static AttachedAnnotationChangedEventArgs Modified(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
208
private
IAttachedAnnotation
_attachedAnnotation;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (8)
53
internal void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, bool reorder)
70
internal void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, bool reorder)
137
private IAnnotationComponent FindComponent(
IAttachedAnnotation
attachedAnnotation)
159
private void AddComponent(
IAttachedAnnotation
attachedAnnotation, IAnnotationComponent component, bool reorder)
203
private void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
264
private void AddToAttachedAnnotations(
IAttachedAnnotation
attachedAnnotation, IAnnotationComponent component)
288
private Dictionary<
IAttachedAnnotation
, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<
IAttachedAnnotation
, IList<IAnnotationComponent>>();
MS\Internal\Annotations\Component\HighlightComponent.cs (5)
213
public void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
261
public void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
302
public void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
505
private ITextContainer CheckInputData(
IAttachedAnnotation
attachedAnnotation)
648
private
IAttachedAnnotation
_attachedAnnotation;
MS\Internal\Annotations\Component\IAnnotationComponent.cs (3)
75
void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation);
81
void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation);
89
void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (6)
199
public void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
229
public void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
256
public void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
1103
TextAnchor firstAnchor = ((
IAttachedAnnotation
)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
1104
TextAnchor secondAnchor = ((
IAttachedAnnotation
)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
1172
private
IAttachedAnnotation
_attachedAnnotation;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (5)
903
void IAnnotationComponent.AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
927
void IAnnotationComponent.RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
955
void IAnnotationComponent.ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
1279
private void SetAnnotation(
IAttachedAnnotation
attachedAnnotation)
1624
private
IAttachedAnnotation
_attachedAnnotation;
System\Windows\Annotations\AnnotationComponentChooser.cs (1)
55
public IAnnotationComponent ChooseAnnotationComponent(
IAttachedAnnotation
attachedAnnotation)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
336
IList<
IAttachedAnnotation
> attachedAnnotations = ProcessAnnotations(dpv);
339
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
362
private IList<
IAttachedAnnotation
> ProcessAnnotations(DocumentPageView dpv)
366
IList<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>();
System\Windows\Annotations\AnnotationHelper.cs (14)
197
IList<
IAttachedAnnotation
> attachedAnnotations = null;
558
private static IList<
IAttachedAnnotation
> GetSpannedAnnotations(AnnotationService service)
602
IList<
IAttachedAnnotation
> attachedAnnotations = null;
665
private static IList<
IAttachedAnnotation
> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection)
685
IList<
IAttachedAnnotation
> attachedAnnotations = null;
715
private static IList<
IAttachedAnnotation
> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage)
722
List<
IAttachedAnnotation
> attachedAnnotations = null;
773
private static List<
IAttachedAnnotation
> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations)
776
List<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>(annotations.Count);
815
IList<
IAttachedAnnotation
> attachedAnnotations = GetSpannedAnnotations(service);
818
foreach (
IAttachedAnnotation
attachedAnnot in attachedAnnotations)
966
IList<
IAttachedAnnotation
> spannedAnnots = GetSpannedAnnotations(service);
969
foreach (
IAttachedAnnotation
attachedAnnotation in spannedAnnots)
System\Windows\Annotations\AnnotationService.cs (51)
360
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(element);
419
internal IList<
IAttachedAnnotation
> GetAttachedAnnotations()
773
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(_root);
793
List<
IAttachedAnnotation
> annotations = obj as List<
IAttachedAnnotation
>;
800
List<
IAttachedAnnotation
> leftover = new List<
IAttachedAnnotation
>(annotations.Count);
821
private bool AttachedAnchorsEqual(
IAttachedAnnotation
firstAttachedAnnotation,
IAttachedAnnotation
secondAttachedAnnotation)
857
private void LoadAnnotationsFromList(IList<
IAttachedAnnotation
> attachedAnnotations)
863
IAttachedAnnotation
matchingAnnotation = null;
864
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
917
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
958
IList<
IAttachedAnnotation
> attachedAnnotations = null;
959
IList<
IAttachedAnnotation
> dirtyAnnotations = new List<
IAttachedAnnotation
>();
964
List<
IAttachedAnnotation
> existingAnnotations = _annotationMap.GetAllAttachedAnnotations();
967
IAttachedAnnotation
match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations);
988
foreach (
IAttachedAnnotation
annotation in dirtyAnnotations)
1142
private
IAttachedAnnotation
FindAnnotationInList(
IAttachedAnnotation
attachedAnnotation, IList<
IAttachedAnnotation
> list)
1144
foreach (
IAttachedAnnotation
aa in list)
1167
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>();
1168
DescendentsWalker<List<
IAttachedAnnotation
>> walker = new DescendentsWalker<List<
IAttachedAnnotation
>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result);
1182
private bool GetAttachedAnnotationsFor(DependencyObject node, List<
IAttachedAnnotation
> result, bool visitedViaVisualTree)
1187
List<
IAttachedAnnotation
> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1303
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotationId);
1309
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1314
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1367
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1372
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1375
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1408
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1409
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1412
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1466
private void DoAddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1473
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1477
list = new List<
IAttachedAnnotation
>(1);
1492
private void DoRemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1501
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1521
private void FullyResolveAnchor(
IAttachedAnnotation
attachedAnnotation)
1721
private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<
IAttachedAnnotation
>), typeof(AnnotationService));