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)
50
internal void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, bool reorder)
67
internal void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, bool reorder)
134
private IAnnotationComponent FindComponent(
IAttachedAnnotation
attachedAnnotation)
156
private void AddComponent(
IAttachedAnnotation
attachedAnnotation, IAnnotationComponent component, bool reorder)
200
private void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
261
private void AddToAttachedAnnotations(
IAttachedAnnotation
attachedAnnotation, IAnnotationComponent component)
285
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)
1097
TextAnchor firstAnchor = ((
IAttachedAnnotation
)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
1098
TextAnchor secondAnchor = ((
IAttachedAnnotation
)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
1166
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)
357
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(element);
416
internal IList<
IAttachedAnnotation
> GetAttachedAnnotations()
767
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(_root);
787
List<
IAttachedAnnotation
> annotations = obj as List<
IAttachedAnnotation
>;
794
List<
IAttachedAnnotation
> leftover = new List<
IAttachedAnnotation
>(annotations.Count);
815
private bool AttachedAnchorsEqual(
IAttachedAnnotation
firstAttachedAnnotation,
IAttachedAnnotation
secondAttachedAnnotation)
851
private void LoadAnnotationsFromList(IList<
IAttachedAnnotation
> attachedAnnotations)
857
IAttachedAnnotation
matchingAnnotation = null;
858
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
911
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
951
IList<
IAttachedAnnotation
> attachedAnnotations = null;
952
IList<
IAttachedAnnotation
> dirtyAnnotations = new List<
IAttachedAnnotation
>();
957
List<
IAttachedAnnotation
> existingAnnotations = _annotationMap.GetAllAttachedAnnotations();
960
IAttachedAnnotation
match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations);
981
foreach (
IAttachedAnnotation
annotation in dirtyAnnotations)
1135
private
IAttachedAnnotation
FindAnnotationInList(
IAttachedAnnotation
attachedAnnotation, IList<
IAttachedAnnotation
> list)
1137
foreach (
IAttachedAnnotation
aa in list)
1160
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>();
1161
DescendentsWalker<List<
IAttachedAnnotation
>> walker = new DescendentsWalker<List<
IAttachedAnnotation
>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result);
1175
private bool GetAttachedAnnotationsFor(DependencyObject node, List<
IAttachedAnnotation
> result, bool visitedViaVisualTree)
1180
List<
IAttachedAnnotation
> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1296
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotationId);
1302
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1307
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1360
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1365
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1368
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1401
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1402
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1405
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1459
private void DoAddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1466
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1470
list = new List<
IAttachedAnnotation
>(1);
1485
private void DoRemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1494
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1514
private void FullyResolveAnchor(
IAttachedAnnotation
attachedAnnotation)
1713
private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<
IAttachedAnnotation
>), typeof(AnnotationService));