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)
1106
TextAnchor firstAnchor = ((
IAttachedAnnotation
)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
1107
TextAnchor secondAnchor = ((
IAttachedAnnotation
)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
1175
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)
1280
private void SetAnnotation(
IAttachedAnnotation
attachedAnnotation)
1625
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)
363
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(element);
422
internal IList<
IAttachedAnnotation
> GetAttachedAnnotations()
776
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(_root);
796
List<
IAttachedAnnotation
> annotations = obj as List<
IAttachedAnnotation
>;
803
List<
IAttachedAnnotation
> leftover = new List<
IAttachedAnnotation
>(annotations.Count);
824
private bool AttachedAnchorsEqual(
IAttachedAnnotation
firstAttachedAnnotation,
IAttachedAnnotation
secondAttachedAnnotation)
860
private void LoadAnnotationsFromList(IList<
IAttachedAnnotation
> attachedAnnotations)
866
IAttachedAnnotation
matchingAnnotation = null;
867
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
920
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
961
IList<
IAttachedAnnotation
> attachedAnnotations = null;
962
IList<
IAttachedAnnotation
> dirtyAnnotations = new List<
IAttachedAnnotation
>();
967
List<
IAttachedAnnotation
> existingAnnotations = _annotationMap.GetAllAttachedAnnotations();
970
IAttachedAnnotation
match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations);
991
foreach (
IAttachedAnnotation
annotation in dirtyAnnotations)
1148
private
IAttachedAnnotation
FindAnnotationInList(
IAttachedAnnotation
attachedAnnotation, IList<
IAttachedAnnotation
> list)
1150
foreach (
IAttachedAnnotation
aa in list)
1173
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>();
1174
DescendentsWalker<List<
IAttachedAnnotation
>> walker = new DescendentsWalker<List<
IAttachedAnnotation
>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result);
1188
private bool GetAttachedAnnotationsFor(DependencyObject node, List<
IAttachedAnnotation
> result, bool visitedViaVisualTree)
1193
List<
IAttachedAnnotation
> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1309
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotationId);
1315
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1320
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1373
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1378
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1381
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1414
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1415
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1418
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1472
private void DoAddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1479
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1483
list = new List<
IAttachedAnnotation
>(1);
1498
private void DoRemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1507
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1527
private void FullyResolveAnchor(
IAttachedAnnotation
attachedAnnotation)
1727
private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<
IAttachedAnnotation
>), typeof(AnnotationService));