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