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)
71
public override IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
110
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)
270
public IList<
IAttachedAnnotation
> ProcessAnnotations(DependencyObject node)
275
IList<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>();
505
internal IList<
IAttachedAnnotation
> ProcessSubTree(DependencyObject subTree)
833
IList<
IAttachedAnnotation
> attachedAnnotations = processor.PreProcessNode(dependencyObject, out calledProcessAnnotations);
860
IList<
IAttachedAnnotation
> attachedAnnotations = processor.PostProcessNode(dependencyObject, childrenCalledProcessAnnotations, out calledProcessAnnotations);
1263
public List<
IAttachedAnnotation
> AttachedAnnotations
1309
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)
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)
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)
333
IList<
IAttachedAnnotation
> attachedAnnotations = ProcessAnnotations(dpv);
336
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
359
private IList<
IAttachedAnnotation
> ProcessAnnotations(DocumentPageView dpv)
363
IList<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>();
System\Windows\Annotations\AnnotationHelper.cs (14)
200
IList<
IAttachedAnnotation
> attachedAnnotations = null;
561
private static IList<
IAttachedAnnotation
> GetSpannedAnnotations(AnnotationService service)
605
IList<
IAttachedAnnotation
> attachedAnnotations = null;
668
private static IList<
IAttachedAnnotation
> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection)
688
IList<
IAttachedAnnotation
> attachedAnnotations = null;
718
private static IList<
IAttachedAnnotation
> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage)
725
List<
IAttachedAnnotation
> attachedAnnotations = null;
776
private static List<
IAttachedAnnotation
> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations)
779
List<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>(annotations.Count);
818
IList<
IAttachedAnnotation
> attachedAnnotations = GetSpannedAnnotations(service);
821
foreach (
IAttachedAnnotation
attachedAnnot in attachedAnnotations)
969
IList<
IAttachedAnnotation
> spannedAnnots = GetSpannedAnnotations(service);
972
foreach (
IAttachedAnnotation
attachedAnnotation in spannedAnnots)
System\Windows\Annotations\AnnotationService.cs (51)
365
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(element);
424
internal IList<
IAttachedAnnotation
> GetAttachedAnnotations()
782
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(_root);
802
List<
IAttachedAnnotation
> annotations = obj as List<
IAttachedAnnotation
>;
809
List<
IAttachedAnnotation
> leftover = new List<
IAttachedAnnotation
>(annotations.Count);
830
private bool AttachedAnchorsEqual(
IAttachedAnnotation
firstAttachedAnnotation,
IAttachedAnnotation
secondAttachedAnnotation)
866
private void LoadAnnotationsFromList(IList<
IAttachedAnnotation
> attachedAnnotations)
872
IAttachedAnnotation
matchingAnnotation = null;
873
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
926
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
967
IList<
IAttachedAnnotation
> attachedAnnotations = null;
968
IList<
IAttachedAnnotation
> dirtyAnnotations = new List<
IAttachedAnnotation
>();
973
List<
IAttachedAnnotation
> existingAnnotations = _annotationMap.GetAllAttachedAnnotations();
976
IAttachedAnnotation
match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations);
997
foreach (
IAttachedAnnotation
annotation in dirtyAnnotations)
1154
private
IAttachedAnnotation
FindAnnotationInList(
IAttachedAnnotation
attachedAnnotation, IList<
IAttachedAnnotation
> list)
1156
foreach (
IAttachedAnnotation
aa in list)
1179
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>();
1180
DescendentsWalker<List<
IAttachedAnnotation
>> walker = new DescendentsWalker<List<
IAttachedAnnotation
>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result);
1194
private bool GetAttachedAnnotationsFor(DependencyObject node, List<
IAttachedAnnotation
> result, bool visitedViaVisualTree)
1199
List<
IAttachedAnnotation
> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1315
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotationId);
1321
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1326
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1379
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1384
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1387
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1420
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1421
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1424
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1478
private void DoAddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1485
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1489
list = new List<
IAttachedAnnotation
>(1);
1504
private void DoRemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1513
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1533
private void FullyResolveAnchor(
IAttachedAnnotation
attachedAnnotation)
1734
private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<
IAttachedAnnotation
>), typeof(AnnotationService));