1 instantiation of Annotation
PresentationFramework (1)
System\Windows\Annotations\AnnotationHelper.cs (1)
891
Annotation annotation = new
Annotation
(annotationType);
102 references to Annotation
PresentationFramework (102)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (4)
46
internal AttachedAnnotation(LocatorManager manager,
Annotation
annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel)
62
internal AttachedAnnotation(LocatorManager manager,
Annotation
annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent)
124
public
Annotation
Annotation { get { return _annotation; } }
299
private
Annotation
_annotation;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
298
IList<
Annotation
> annotations = store.GetAnnotations(lists[0]);
308
foreach (
Annotation
annotation in annotations)
MS\Internal\Annotations\Component\HighlightComponent.cs (2)
468
internal static void GetCargoColors(
Annotation
annot, ref Nullable<Color> backgroundColor, ref Nullable<Color> activeBackgroundColor)
552
private void GetColors(
Annotation
annot, out Color backgroundColor, out Color activeBackgroundColor)
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (15)
67
public void AddAnnotation(
Annotation
annotation, bool dirty)
105
public Dictionary<Guid,
Annotation
> FindAnnotations(ContentLocator anchorLocator)
109
Dictionary<Guid,
Annotation
> annotations = new Dictionary<Guid,
Annotation
>();
118
Annotation
annotation = annotationsEnumerator.Current.Annotation;
168
public Dictionary<Guid,
Annotation
> FindAnnotations()
170
Dictionary<Guid,
Annotation
> annotations = new Dictionary<Guid,
Annotation
>();
183
public
Annotation
FindAnnotation(Guid id)
198
public List<
Annotation
> FindDirtyAnnotations()
200
List<
Annotation
> annotations = new List<
Annotation
>();
312
public CachedAnnotation(
Annotation
annotation, bool dirty)
322
public
Annotation
Annotation
339
private
Annotation
_annotation;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
77
public SNCAnnotation(
Annotation
annotation)
882
private
Annotation
_annotation;
System\Windows\Annotations\AnchorInfo.cs (1)
20
Annotation
Annotation { get;}
System\Windows\Annotations\Annotation.cs (2)
546
if (
Annotation
.IsNamespaceDeclaration(reader))
660
if (!
Annotation
.IsNamespaceDeclaration(reader))
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (3)
49
public AnnotationAuthorChangedEventArgs(
Annotation
annotation, AnnotationAction action, Object author)
78
public
Annotation
Annotation
121
private
Annotation
_annotation;
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
371
IList<
Annotation
> annotations = _annotationStore.GetAnnotations(lists[0]);
381
foreach (
Annotation
annotation in annotations)
System\Windows\Annotations\AnnotationHelper.cs (27)
46
public static
Annotation
CreateHighlightForSelection(AnnotationService service, string author, Brush highlightBrush)
48
Annotation
highlight = null;
76
public static
Annotation
CreateTextStickyNoteForSelection(AnnotationService service, string author)
92
public static
Annotation
CreateInkStickyNoteForSelection(AnnotationService service, string author)
175
public static IAnchorInfo GetAnchorInfo(AnnotationService service,
Annotation
annotation)
217
attachedAnnotations = ResolveAnnotations(service, new
Annotation
[] { annotation });
236
attachedAnnotations = ResolveAnnotations(service, new
Annotation
[] { annotation });
488
private static
Annotation
CreateStickyNoteForSelection(AnnotationService service, XmlQualifiedName noteType, string author)
502
Annotation
annotation = null;
689
IList<
Annotation
> annotations = null;
726
List<
Annotation
> annotations = new List<
Annotation
>();
756
private static void AddRange(List<
Annotation
> annotations, IList<
Annotation
> newAnnotations)
759
foreach (
Annotation
newAnnotation in newAnnotations)
762
foreach (
Annotation
annotation in annotations)
776
private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<
Annotation
> annotations)
782
foreach (
Annotation
annot in annotations)
881
private static
Annotation
CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author)
891
Annotation
annotation = new Annotation(annotationType);
912
private static
Annotation
Highlight(AnnotationService service, string author, Brush highlightBrush, bool create)
948
Annotation
highlight = ProcessHighlights(service, anchor, author, color, create);
965
private static
Annotation
ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create)
1001
Annotation
highlight = CreateHighlight(service, textRange, author, color);
1017
private static
Annotation
CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color)
1021
Annotation
annotation = CreateAnnotationForSelection(service, textRange, HighlightComponent.TypeName, author);
1054
private static void SetAnchor(AnnotationService service,
Annotation
annot, object selection)
System\Windows\Annotations\AnnotationResource.cs (1)
458
if (!
Annotation
.IsNamespaceDeclaration(reader))
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (3)
49
public AnnotationResourceChangedEventArgs(
Annotation
annotation, AnnotationAction action, AnnotationResource resource)
78
public
Annotation
Annotation
121
private
Annotation
_annotation;
System\Windows\Annotations\AnnotationService.cs (4)
1283
private void AnnotationAdded(
Annotation
annotation)
1342
private AttachedAnnotationChangedEventArgs AnchorAdded(
Annotation
annotation, AnnotationResource anchor)
1373
private AttachedAnnotationChangedEventArgs AnchorRemoved(
Annotation
annotation, AnnotationResource anchor)
1408
private AttachedAnnotationChangedEventArgs AnchorModified(
Annotation
annotation, AnnotationResource anchor)
System\Windows\Annotations\LocatorGroup.cs (1)
127
Annotation
.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.Elements.ContentLocatorGroup);
System\Windows\Annotations\LocatorPartList.cs (3)
209
Annotation
.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.Elements.ContentLocator);
232
Annotation
.CheckForNonNamespaceAttribute(reader, part.PartType.Name);
254
if (!
Annotation
.IsNamespaceDeclaration(reader))
System\Windows\Annotations\Storage\AnnotationStore.cs (5)
62
public abstract void AddAnnotation(
Annotation
newAnnotation);
70
public abstract
Annotation
DeleteAnnotation(Guid annotationId);
84
public abstract IList<
Annotation
> GetAnnotations(ContentLocator anchorLocator);
91
public abstract IList <
Annotation
> GetAnnotations();
99
public abstract
Annotation
GetAnnotation(Guid annotationId);
System\Windows\Annotations\Storage\StoreContentChangedEventArgs.cs (3)
62
public StoreContentChangedEventArgs(StoreContentAction action,
Annotation
annotation)
95
public
Annotation
Annotation
131
private
Annotation
_annotation; // annotation that was updated
System\Windows\Annotations\Storage\XmlStreamStore.cs (22)
117
public override void AddAnnotation(
Annotation
newAnnotation)
163
public override
Annotation
DeleteAnnotation(Guid annotationId)
165
Annotation
annotation = null;
186
annotation = (
Annotation
)_serializer.Deserialize(editor.ReadSubtree());
227
public override IList<
Annotation
> GetAnnotations(ContentLocator anchorLocator)
237
IList<
Annotation
> annotations = null;
286
public override IList<
Annotation
> GetAnnotations()
288
IList<
Annotation
> annotations = null;
310
public override
Annotation
GetAnnotation(Guid annotationId)
314
Annotation
annotation = null;
332
annotation = (
Annotation
)_serializer.Deserialize(editor.ReadSubtree());
646
private IList<
Annotation
> MergeAndCacheAnnotations(Dictionary<Guid,
Annotation
> mapAnnotations, List<Guid> storeAnnotationsId)
649
List<
Annotation
> annotations = new List<
Annotation
>((IEnumerable<
Annotation
>)mapAnnotations.Values);
661
Annotation
annot;
680
private IList<
Annotation
> InternalGetAnnotations(string query, ContentLocator anchorLocator)
690
Dictionary<Guid,
Annotation
> annotations = null;
943
List<
Annotation
> mapAnnotations = _storeAnnotationsMap.FindDirtyAnnotations();
944
foreach (
Annotation
annotation in mapAnnotations)
1045
private static readonly Serializer _serializer = new Serializer(typeof(
Annotation
));