1 implementation of IAttachedAnnotation
PresentationFramework (1)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
34
internal class AttachedAnnotation :
IAttachedAnnotation
135 references to IAttachedAnnotation
PresentationFramework (135)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
80
public override IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
119
public override IList<
IAttachedAnnotation
> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
81
public override IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (9)
281
public IList<
IAttachedAnnotation
> ProcessAnnotations(DependencyObject node)
286
IList<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>();
516
internal IList<
IAttachedAnnotation
> ProcessSubTree(DependencyObject subTree)
844
IList<
IAttachedAnnotation
> attachedAnnotations = processor.PreProcessNode(dependencyObject, out calledProcessAnnotations);
871
IList<
IAttachedAnnotation
> attachedAnnotations = processor.PostProcessNode(dependencyObject, childrenCalledProcessAnnotations, out calledProcessAnnotations);
1274
public List<
IAttachedAnnotation
> AttachedAnnotations
1320
private List<
IAttachedAnnotation
> _attachedAnnotations = new List<
IAttachedAnnotation
>();
MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (2)
80
public abstract IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations);
95
public virtual IList<
IAttachedAnnotation
> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
MS\Internal\Annotations\AnnotationMap.cs (15)
28
internal void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
30
List<
IAttachedAnnotation
> list = null;
33
list = new List<
IAttachedAnnotation
>(1);
44
internal void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
46
List<
IAttachedAnnotation
> list = null;
74
internal List<
IAttachedAnnotation
> GetAttachedAnnotations(Guid annotationId)
76
List<
IAttachedAnnotation
> list = null;
92
internal List<
IAttachedAnnotation
> GetAllAttachedAnnotations()
94
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>(_annotationIdToAttachedAnnotations.Keys.Count);
98
List<
IAttachedAnnotation
> list = _annotationIdToAttachedAnnotations[annId];
112
private Dictionary<Guid, List<
IAttachedAnnotation
>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<
IAttachedAnnotation
>>();
115
private static readonly List<
IAttachedAnnotation
> _emptyList = new List<
IAttachedAnnotation
>(0);
MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
88
internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action,
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
122
public
IAttachedAnnotation
AttachedAnnotation { get { return _attachedAnnotation; } }
158
internal static AttachedAnnotationChangedEventArgs Added(
IAttachedAnnotation
attachedAnnotation)
170
internal static AttachedAnnotationChangedEventArgs Loaded(
IAttachedAnnotation
attachedAnnotation)
182
internal static AttachedAnnotationChangedEventArgs Deleted(
IAttachedAnnotation
attachedAnnotation)
194
internal static AttachedAnnotationChangedEventArgs Unloaded(
IAttachedAnnotation
attachedAnnotation)
208
internal static AttachedAnnotationChangedEventArgs Modified(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
226
private
IAttachedAnnotation
_attachedAnnotation;
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (8)
58
internal void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, bool reorder)
75
internal void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, bool reorder)
143
private IAnnotationComponent FindComponent(
IAttachedAnnotation
attachedAnnotation)
165
private void AddComponent(
IAttachedAnnotation
attachedAnnotation, IAnnotationComponent component, bool reorder)
209
private void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
270
private void AddToAttachedAnnotations(
IAttachedAnnotation
attachedAnnotation, IAnnotationComponent component)
294
private Dictionary<
IAttachedAnnotation
, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<
IAttachedAnnotation
, IList<IAnnotationComponent>>();
MS\Internal\Annotations\Component\HighlightComponent.cs (5)
222
public void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
270
public void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
311
public void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
514
private ITextContainer CheckInputData(
IAttachedAnnotation
attachedAnnotation)
657
private
IAttachedAnnotation
_attachedAnnotation;
MS\Internal\Annotations\Component\IAnnotationComponent.cs (3)
78
void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation);
84
void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation);
92
void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (6)
206
public void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
236
public void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
263
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)
914
void IAnnotationComponent.AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
938
void IAnnotationComponent.RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
966
void IAnnotationComponent.ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
1291
private void SetAnnotation(
IAttachedAnnotation
attachedAnnotation)
1636
private
IAttachedAnnotation
_attachedAnnotation;
System\Windows\Annotations\AnnotationComponentChooser.cs (1)
60
public IAnnotationComponent ChooseAnnotationComponent(
IAttachedAnnotation
attachedAnnotation)
System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
338
IList<
IAttachedAnnotation
> attachedAnnotations = ProcessAnnotations(dpv);
341
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
364
private IList<
IAttachedAnnotation
> ProcessAnnotations(DocumentPageView dpv)
368
IList<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>();
System\Windows\Annotations\AnnotationHelper.cs (14)
212
IList<
IAttachedAnnotation
> attachedAnnotations = null;
573
private static IList<
IAttachedAnnotation
> GetSpannedAnnotations(AnnotationService service)
617
IList<
IAttachedAnnotation
> attachedAnnotations = null;
680
private static IList<
IAttachedAnnotation
> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection)
700
IList<
IAttachedAnnotation
> attachedAnnotations = null;
730
private static IList<
IAttachedAnnotation
> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage)
737
List<
IAttachedAnnotation
> attachedAnnotations = null;
788
private static List<
IAttachedAnnotation
> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations)
791
List<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>(annotations.Count);
830
IList<
IAttachedAnnotation
> attachedAnnotations = GetSpannedAnnotations(service);
833
foreach (
IAttachedAnnotation
attachedAnnot in attachedAnnotations)
981
IList<
IAttachedAnnotation
> spannedAnnots = GetSpannedAnnotations(service);
984
foreach (
IAttachedAnnotation
attachedAnnotation in spannedAnnots)
System\Windows\Annotations\AnnotationService.cs (51)
377
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(element);
436
internal IList<
IAttachedAnnotation
> GetAttachedAnnotations()
794
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(_root);
814
List<
IAttachedAnnotation
> annotations = obj as List<
IAttachedAnnotation
>;
821
List<
IAttachedAnnotation
> leftover = new List<
IAttachedAnnotation
>(annotations.Count);
842
private bool AttachedAnchorsEqual(
IAttachedAnnotation
firstAttachedAnnotation,
IAttachedAnnotation
secondAttachedAnnotation)
878
private void LoadAnnotationsFromList(IList<
IAttachedAnnotation
> attachedAnnotations)
884
IAttachedAnnotation
matchingAnnotation = null;
885
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
938
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
979
IList<
IAttachedAnnotation
> attachedAnnotations = null;
980
IList<
IAttachedAnnotation
> dirtyAnnotations = new List<
IAttachedAnnotation
>();
985
List<
IAttachedAnnotation
> existingAnnotations = _annotationMap.GetAllAttachedAnnotations();
988
IAttachedAnnotation
match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations);
1009
foreach (
IAttachedAnnotation
annotation in dirtyAnnotations)
1166
private
IAttachedAnnotation
FindAnnotationInList(
IAttachedAnnotation
attachedAnnotation, IList<
IAttachedAnnotation
> list)
1168
foreach (
IAttachedAnnotation
aa in list)
1191
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>();
1192
DescendentsWalker<List<
IAttachedAnnotation
>> walker = new DescendentsWalker<List<
IAttachedAnnotation
>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result);
1206
private bool GetAttachedAnnotationsFor(DependencyObject node, List<
IAttachedAnnotation
> result, bool visitedViaVisualTree)
1211
List<
IAttachedAnnotation
> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1327
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotationId);
1333
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1338
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1391
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1396
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1399
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1432
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1433
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1436
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1490
private void DoAddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1497
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1501
list = new List<
IAttachedAnnotation
>(1);
1516
private void DoRemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1525
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1545
private void FullyResolveAnchor(
IAttachedAnnotation
attachedAnnotation)
1746
private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<
IAttachedAnnotation
>), typeof(AnnotationService));