1 instantiation of Annotation
PresentationFramework (1)
System\Windows\Annotations\AnnotationHelper.cs (1)
888
Annotation annotation = new
Annotation
(annotationType);
102 references to Annotation
PresentationFramework (102)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (4)
45
internal AttachedAnnotation(LocatorManager manager,
Annotation
annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel)
61
internal AttachedAnnotation(LocatorManager manager,
Annotation
annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent)
123
public
Annotation
Annotation { get { return _annotation; } }
298
private
Annotation
_annotation;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
286
IList<
Annotation
> annotations = store.GetAnnotations(lists[0]);
296
foreach (
Annotation
annotation in annotations)
MS\Internal\Annotations\Component\HighlightComponent.cs (2)
467
internal static void GetCargoColors(
Annotation
annot, ref Nullable<Color> backgroundColor, ref Nullable<Color> activeBackgroundColor)
551
private void GetColors(
Annotation
annot, out Color backgroundColor, out Color activeBackgroundColor)
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (15)
66
public void AddAnnotation(
Annotation
annotation, bool dirty)
104
public Dictionary<Guid,
Annotation
> FindAnnotations(ContentLocator anchorLocator)
108
Dictionary<Guid,
Annotation
> annotations = new Dictionary<Guid,
Annotation
>();
117
Annotation
annotation = annotationsEnumerator.Current.Annotation;
167
public Dictionary<Guid,
Annotation
> FindAnnotations()
169
Dictionary<Guid,
Annotation
> annotations = new Dictionary<Guid,
Annotation
>();
182
public
Annotation
FindAnnotation(Guid id)
197
public List<
Annotation
> FindDirtyAnnotations()
199
List<
Annotation
> annotations = new List<
Annotation
>();
311
public CachedAnnotation(
Annotation
annotation, bool dirty)
321
public
Annotation
Annotation
338
private
Annotation
_annotation;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
76
public SNCAnnotation(
Annotation
annotation)
881
private
Annotation
_annotation;
System\Windows\Annotations\AnchorInfo.cs (1)
19
Annotation
Annotation { get;}
System\Windows\Annotations\Annotation.cs (2)
545
if (
Annotation
.IsNamespaceDeclaration(reader))
663
if (!
Annotation
.IsNamespaceDeclaration(reader))
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (3)
48
public AnnotationAuthorChangedEventArgs(
Annotation
annotation, AnnotationAction action, Object author)
77
public
Annotation
Annotation
120
private
Annotation
_annotation;
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
374
IList<
Annotation
> annotations = _annotationStore.GetAnnotations(lists[0]);
384
foreach (
Annotation
annotation in annotations)
System\Windows\Annotations\AnnotationHelper.cs (27)
43
public static
Annotation
CreateHighlightForSelection(AnnotationService service, string author, Brush highlightBrush)
45
Annotation
highlight = null;
73
public static
Annotation
CreateTextStickyNoteForSelection(AnnotationService service, string author)
89
public static
Annotation
CreateInkStickyNoteForSelection(AnnotationService service, string author)
172
public static IAnchorInfo GetAnchorInfo(AnnotationService service,
Annotation
annotation)
214
attachedAnnotations = ResolveAnnotations(service, new
Annotation
[] { annotation });
233
attachedAnnotations = ResolveAnnotations(service, new
Annotation
[] { annotation });
485
private static
Annotation
CreateStickyNoteForSelection(AnnotationService service, XmlQualifiedName noteType, string author)
499
Annotation
annotation = null;
686
IList<
Annotation
> annotations = null;
723
List<
Annotation
> annotations = new List<
Annotation
>();
753
private static void AddRange(List<
Annotation
> annotations, IList<
Annotation
> newAnnotations)
756
foreach (
Annotation
newAnnotation in newAnnotations)
759
foreach (
Annotation
annotation in annotations)
773
private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<
Annotation
> annotations)
779
foreach (
Annotation
annot in annotations)
878
private static
Annotation
CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author)
888
Annotation
annotation = new Annotation(annotationType);
909
private static
Annotation
Highlight(AnnotationService service, string author, Brush highlightBrush, bool create)
945
Annotation
highlight = ProcessHighlights(service, anchor, author, color, create);
962
private static
Annotation
ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create)
998
Annotation
highlight = CreateHighlight(service, textRange, author, color);
1014
private static
Annotation
CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color)
1018
Annotation
annotation = CreateAnnotationForSelection(service, textRange, HighlightComponent.TypeName, author);
1051
private static void SetAnchor(AnnotationService service,
Annotation
annot, object selection)
System\Windows\Annotations\AnnotationResource.cs (1)
454
if (!
Annotation
.IsNamespaceDeclaration(reader))
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (3)
48
public AnnotationResourceChangedEventArgs(
Annotation
annotation, AnnotationAction action, AnnotationResource resource)
77
public
Annotation
Annotation
120
private
Annotation
_annotation;
System\Windows\Annotations\AnnotationService.cs (4)
1277
private void AnnotationAdded(
Annotation
annotation)
1336
private AttachedAnnotationChangedEventArgs AnchorAdded(
Annotation
annotation, AnnotationResource anchor)
1367
private AttachedAnnotationChangedEventArgs AnchorRemoved(
Annotation
annotation, AnnotationResource anchor)
1402
private AttachedAnnotationChangedEventArgs AnchorModified(
Annotation
annotation, AnnotationResource anchor)
System\Windows\Annotations\LocatorGroup.cs (1)
126
Annotation
.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.Elements.ContentLocatorGroup);
System\Windows\Annotations\LocatorPartList.cs (3)
194
Annotation
.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.Elements.ContentLocator);
217
Annotation
.CheckForNonNamespaceAttribute(reader, part.PartType.Name);
239
if (!
Annotation
.IsNamespaceDeclaration(reader))
System\Windows\Annotations\Storage\AnnotationStore.cs (5)
61
public abstract void AddAnnotation(
Annotation
newAnnotation);
69
public abstract
Annotation
DeleteAnnotation(Guid annotationId);
83
public abstract IList<
Annotation
> GetAnnotations(ContentLocator anchorLocator);
90
public abstract IList <
Annotation
> GetAnnotations();
98
public abstract
Annotation
GetAnnotation(Guid annotationId);
System\Windows\Annotations\Storage\StoreContentChangedEventArgs.cs (3)
61
public StoreContentChangedEventArgs(StoreContentAction action,
Annotation
annotation)
94
public
Annotation
Annotation
130
private
Annotation
_annotation; // annotation that was updated
System\Windows\Annotations\Storage\XmlStreamStore.cs (22)
116
public override void AddAnnotation(
Annotation
newAnnotation)
162
public override
Annotation
DeleteAnnotation(Guid annotationId)
164
Annotation
annotation = null;
185
annotation = (
Annotation
)_serializer.Deserialize(editor.ReadSubtree());
226
public override IList<
Annotation
> GetAnnotations(ContentLocator anchorLocator)
236
IList<
Annotation
> annotations = null;
285
public override IList<
Annotation
> GetAnnotations()
287
IList<
Annotation
> annotations = null;
309
public override
Annotation
GetAnnotation(Guid annotationId)
313
Annotation
annotation = null;
331
annotation = (
Annotation
)_serializer.Deserialize(editor.ReadSubtree());
645
private IList<
Annotation
> MergeAndCacheAnnotations(Dictionary<Guid,
Annotation
> mapAnnotations, List<Guid> storeAnnotationsId)
648
List<
Annotation
> annotations = new List<
Annotation
>((IEnumerable<
Annotation
>)mapAnnotations.Values);
660
Annotation
annot;
679
private IList<
Annotation
> InternalGetAnnotations(string query, ContentLocator anchorLocator)
689
Dictionary<Guid,
Annotation
> annotations = null;
944
List<
Annotation
> mapAnnotations = _storeAnnotationsMap.FindDirtyAnnotations();
945
foreach (
Annotation
annotation in mapAnnotations)
1046
private static readonly Serializer _serializer = new Serializer(typeof(
Annotation
));