1 implementation of IAttachedAnnotation
PresentationFramework (1)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (1)
38
internal class AttachedAnnotation :
IAttachedAnnotation
135 references to IAttachedAnnotation
PresentationFramework (135)
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
87
public override IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
127
public override IList<
IAttachedAnnotation
> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
src\Framework\MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
85
public override IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations)
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (9)
296
public IList<
IAttachedAnnotation
> ProcessAnnotations(DependencyObject node)
302
IList<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>();
538
internal IList<
IAttachedAnnotation
> ProcessSubTree(DependencyObject subTree)
870
IList<
IAttachedAnnotation
> attachedAnnotations = processor.PreProcessNode(dependencyObject, out calledProcessAnnotations);
897
IList<
IAttachedAnnotation
> attachedAnnotations = processor.PostProcessNode(dependencyObject, childrenCalledProcessAnnotations, out calledProcessAnnotations);
1300
public List<
IAttachedAnnotation
> AttachedAnnotations
1346
private List<
IAttachedAnnotation
> _attachedAnnotations = new List<
IAttachedAnnotation
>();
src\Framework\MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (2)
88
public abstract IList<
IAttachedAnnotation
> PreProcessNode(DependencyObject node, out bool calledProcessAnnotations);
103
public virtual IList<
IAttachedAnnotation
> PostProcessNode(DependencyObject node, bool childrenCalledProcessAnnotations, out bool calledProcessAnnotations)
src\Framework\MS\Internal\Annotations\AnnotationMap.cs (15)
34
internal void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
36
List<
IAttachedAnnotation
> list = null;
39
list = new List<
IAttachedAnnotation
>(1);
50
internal void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
52
List<
IAttachedAnnotation
> list = null;
80
internal List<
IAttachedAnnotation
> GetAttachedAnnotations(Guid annotationId)
82
List<
IAttachedAnnotation
> list = null;
98
internal List<
IAttachedAnnotation
> GetAllAttachedAnnotations()
100
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>(_annotationIdToAttachedAnnotations.Keys.Count);
104
List<
IAttachedAnnotation
> list = _annotationIdToAttachedAnnotations[annId];
118
private Dictionary<Guid, List<
IAttachedAnnotation
> > _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<
IAttachedAnnotation
> >();
121
private static readonly List<
IAttachedAnnotation
> _emptyList = new List<
IAttachedAnnotation
>(0);
src\Framework\MS\Internal\Annotations\AttachedAnnotationChangedEventArgs.cs (8)
94
internal AttachedAnnotationChangedEventArgs(AttachedAnnotationAction action,
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
128
public
IAttachedAnnotation
AttachedAnnotation { get { return _attachedAnnotation; } }
164
internal static AttachedAnnotationChangedEventArgs Added(
IAttachedAnnotation
attachedAnnotation)
176
internal static AttachedAnnotationChangedEventArgs Loaded(
IAttachedAnnotation
attachedAnnotation)
188
internal static AttachedAnnotationChangedEventArgs Deleted(
IAttachedAnnotation
attachedAnnotation)
200
internal static AttachedAnnotationChangedEventArgs Unloaded(
IAttachedAnnotation
attachedAnnotation)
214
internal static AttachedAnnotationChangedEventArgs Modified(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
232
private
IAttachedAnnotation
_attachedAnnotation;
src\Framework\MS\Internal\Annotations\Component\AnnotationComponentManager.cs (8)
63
internal void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, bool reorder)
80
internal void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, bool reorder)
148
private IAnnotationComponent FindComponent(
IAttachedAnnotation
attachedAnnotation)
170
private void AddComponent(
IAttachedAnnotation
attachedAnnotation, IAnnotationComponent component, bool reorder)
215
private void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
276
private void AddToAttachedAnnotations(
IAttachedAnnotation
attachedAnnotation, IAnnotationComponent component)
300
private Dictionary<
IAttachedAnnotation
, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<
IAttachedAnnotation
, IList<IAnnotationComponent>>();
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (5)
232
public void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
281
public void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
327
public void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
535
private ITextContainer CheckInputData(
IAttachedAnnotation
attachedAnnotation)
685
private
IAttachedAnnotation
_attachedAnnotation;
src\Framework\MS\Internal\Annotations\Component\IAnnotationComponent.cs (3)
83
void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation);
89
void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation);
97
void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel);
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (6)
215
public void AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
246
public void RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
277
public void ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
1132
TextAnchor firstAnchor = ((
IAttachedAnnotation
)first.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
1133
TextAnchor secondAnchor = ((
IAttachedAnnotation
)second.AttachedAnnotations[0]).FullyAttachedAnchor as TextAnchor;
1202
private
IAttachedAnnotation
_attachedAnnotation;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (5)
923
void IAnnotationComponent.AddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
950
void IAnnotationComponent.RemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
982
void IAnnotationComponent.ModifyAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation, object previousAttachedAnchor, AttachmentLevel previousAttachmentLevel)
1306
private void SetAnnotation(
IAttachedAnnotation
attachedAnnotation)
1653
private
IAttachedAnnotation
_attachedAnnotation;
src\Framework\System\Windows\Annotations\AnnotationComponentChooser.cs (1)
65
public IAnnotationComponent ChooseAnnotationComponent(
IAttachedAnnotation
attachedAnnotation)
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
348
IList<
IAttachedAnnotation
> attachedAnnotations = ProcessAnnotations(dpv);
351
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
374
private IList<
IAttachedAnnotation
> ProcessAnnotations(DocumentPageView dpv)
379
IList<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>();
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (14)
218
IList<
IAttachedAnnotation
> attachedAnnotations = null;
580
private static IList<
IAttachedAnnotation
> GetSpannedAnnotations(AnnotationService service)
624
IList<
IAttachedAnnotation
> attachedAnnotations = null;
687
private static IList<
IAttachedAnnotation
> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection)
707
IList<
IAttachedAnnotation
> attachedAnnotations = null;
737
private static IList<
IAttachedAnnotation
> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage)
744
List<
IAttachedAnnotation
> attachedAnnotations = null;
795
private static List<
IAttachedAnnotation
> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations)
798
List<
IAttachedAnnotation
> attachedAnnotations = new List<
IAttachedAnnotation
>(annotations.Count);
837
IList<
IAttachedAnnotation
> attachedAnnotations = GetSpannedAnnotations(service);
840
foreach (
IAttachedAnnotation
attachedAnnot in attachedAnnotations)
989
IList<
IAttachedAnnotation
> spannedAnnots = GetSpannedAnnotations(service);
992
foreach (
IAttachedAnnotation
attachedAnnotation in spannedAnnots)
src\Framework\System\Windows\Annotations\AnnotationService.cs (51)
397
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(element);
458
internal IList<
IAttachedAnnotation
> GetAttachedAnnotations()
826
IList<
IAttachedAnnotation
> attachedAnnotations = LocatorManager.ProcessSubTree(_root);
846
List<
IAttachedAnnotation
> annotations = obj as List<
IAttachedAnnotation
>;
853
List<
IAttachedAnnotation
> leftover = new List<
IAttachedAnnotation
>(annotations.Count);
874
private bool AttachedAnchorsEqual(
IAttachedAnnotation
firstAttachedAnnotation,
IAttachedAnnotation
secondAttachedAnnotation)
911
private void LoadAnnotationsFromList(IList<
IAttachedAnnotation
> attachedAnnotations)
917
IAttachedAnnotation
matchingAnnotation = null;
918
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
972
foreach (
IAttachedAnnotation
attachedAnnotation in attachedAnnotations)
1014
IList<
IAttachedAnnotation
> attachedAnnotations = null;
1015
IList<
IAttachedAnnotation
> dirtyAnnotations = new List<
IAttachedAnnotation
>();
1020
List<
IAttachedAnnotation
> existingAnnotations = _annotationMap.GetAllAttachedAnnotations();
1023
IAttachedAnnotation
match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations);
1046
foreach (
IAttachedAnnotation
annotation in dirtyAnnotations)
1206
private
IAttachedAnnotation
FindAnnotationInList(
IAttachedAnnotation
attachedAnnotation, IList<
IAttachedAnnotation
> list)
1208
foreach (
IAttachedAnnotation
aa in list)
1231
List<
IAttachedAnnotation
> result = new List<
IAttachedAnnotation
>();
1232
DescendentsWalker<List<
IAttachedAnnotation
>> walker = new DescendentsWalker<List<
IAttachedAnnotation
>>(TreeWalkPriority.VisualTree, GetAttachedAnnotationsFor, result);
1246
private bool GetAttachedAnnotationsFor(DependencyObject node, List<
IAttachedAnnotation
> result, bool visitedViaVisualTree)
1251
List<
IAttachedAnnotation
> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1367
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotationId);
1373
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1378
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1431
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1436
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1439
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1472
IList<
IAttachedAnnotation
> annotations = _annotationMap.GetAttachedAnnotations(annotation.Id);
1473
IAttachedAnnotation
[] list = new
IAttachedAnnotation
[annotations.Count];
1476
foreach (
IAttachedAnnotation
attachedAnnotation in list)
1530
private void DoAddAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1537
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1541
list = new List<
IAttachedAnnotation
>(1);
1556
private void DoRemoveAttachedAnnotation(
IAttachedAnnotation
attachedAnnotation)
1565
List<
IAttachedAnnotation
> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<
IAttachedAnnotation
>;
1585
private void FullyResolveAnchor(
IAttachedAnnotation
attachedAnnotation)
1788
private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<
IAttachedAnnotation
>), typeof(AnnotationService));