1 instantiation of Annotation
PresentationFramework (1)
System\Windows\Annotations\AnnotationHelper.cs (1)
903Annotation annotation = new Annotation(annotationType);
102 references to Annotation
PresentationFramework (102)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (4)
52internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel) 68internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 130public Annotation Annotation { get { return _annotation; } } 305private Annotation _annotation;
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
309IList<Annotation> annotations = store.GetAnnotations(lists[0]); 319foreach (Annotation annotation in annotations)
MS\Internal\Annotations\Component\HighlightComponent.cs (2)
476internal static void GetCargoColors(Annotation annot, ref Nullable<Color> backgroundColor, ref Nullable<Color> activeBackgroundColor) 560private void GetColors(Annotation annot, out Color backgroundColor, out Color activeBackgroundColor)
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (15)
74public void AddAnnotation(Annotation annotation, bool dirty) 112public Dictionary<Guid, Annotation> FindAnnotations(ContentLocator anchorLocator) 116Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 125Annotation annotation = annotationsEnumerator.Current.Annotation; 175public Dictionary<Guid, Annotation> FindAnnotations() 177Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 190public Annotation FindAnnotation(Guid id) 205public List<Annotation> FindDirtyAnnotations() 207List<Annotation> annotations = new List<Annotation>(); 319public CachedAnnotation(Annotation annotation, bool dirty) 329public Annotation Annotation 346private Annotation _annotation;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
87public SNCAnnotation(Annotation annotation) 892private Annotation _annotation;
System\Windows\Annotations\AnchorInfo.cs (1)
29Annotation Annotation { get;}
System\Windows\Annotations\Annotation.cs (2)
553if (Annotation.IsNamespaceDeclaration(reader)) 667if (!Annotation.IsNamespaceDeclaration(reader))
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (3)
50public AnnotationAuthorChangedEventArgs(Annotation annotation, AnnotationAction action, Object author) 79public Annotation Annotation 122private Annotation _annotation;
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
376IList<Annotation> annotations = _annotationStore.GetAnnotations(lists[0]); 386foreach (Annotation annotation in annotations)
System\Windows\Annotations\AnnotationHelper.cs (27)
58public static Annotation CreateHighlightForSelection(AnnotationService service, string author, Brush highlightBrush) 60Annotation highlight = null; 88public static Annotation CreateTextStickyNoteForSelection(AnnotationService service, string author) 104public static Annotation CreateInkStickyNoteForSelection(AnnotationService service, string author) 187public static IAnchorInfo GetAnchorInfo(AnnotationService service, Annotation annotation) 229attachedAnnotations = ResolveAnnotations(service, new Annotation[] { annotation }); 248attachedAnnotations = ResolveAnnotations(service, new Annotation[] { annotation }); 500private static Annotation CreateStickyNoteForSelection(AnnotationService service, XmlQualifiedName noteType, string author) 514Annotation annotation = null; 701IList<Annotation> annotations = null; 738List<Annotation> annotations = new List<Annotation>(); 768private static void AddRange(List<Annotation> annotations, IList<Annotation> newAnnotations) 771foreach (Annotation newAnnotation in newAnnotations) 774foreach (Annotation annotation in annotations) 788private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 794foreach (Annotation annot in annotations) 893private static Annotation CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author) 903Annotation annotation = new Annotation(annotationType); 924private static Annotation Highlight(AnnotationService service, string author, Brush highlightBrush, bool create) 960Annotation highlight = ProcessHighlights(service, anchor, author, color, create); 977private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create) 1013Annotation highlight = CreateHighlight(service, textRange, author, color); 1029private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color) 1033Annotation annotation = CreateAnnotationForSelection(service, textRange, HighlightComponent.TypeName, author); 1066private static void SetAnchor(AnnotationService service, Annotation annot, object selection)
System\Windows\Annotations\AnnotationResource.cs (1)
464if (!Annotation.IsNamespaceDeclaration(reader))
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (3)
50public AnnotationResourceChangedEventArgs(Annotation annotation, AnnotationAction action, AnnotationResource resource) 79public Annotation Annotation 122private Annotation _annotation;
System\Windows\Annotations\AnnotationService.cs (4)
1295private void AnnotationAdded(Annotation annotation) 1354private AttachedAnnotationChangedEventArgs AnchorAdded(Annotation annotation, AnnotationResource anchor) 1385private AttachedAnnotationChangedEventArgs AnchorRemoved(Annotation annotation, AnnotationResource anchor) 1420private AttachedAnnotationChangedEventArgs AnchorModified(Annotation annotation, AnnotationResource anchor)
System\Windows\Annotations\LocatorGroup.cs (1)
133Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.Elements.ContentLocatorGroup);
System\Windows\Annotations\LocatorPartList.cs (3)
216Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.Elements.ContentLocator); 239Annotation.CheckForNonNamespaceAttribute(reader, part.PartType.Name); 261if (!Annotation.IsNamespaceDeclaration(reader))
System\Windows\Annotations\Storage\AnnotationStore.cs (5)
70public abstract void AddAnnotation(Annotation newAnnotation); 78public abstract Annotation DeleteAnnotation(Guid annotationId); 92public abstract IList<Annotation> GetAnnotations(ContentLocator anchorLocator); 99public abstract IList <Annotation> GetAnnotations(); 107public abstract Annotation GetAnnotation(Guid annotationId);
System\Windows\Annotations\Storage\StoreContentChangedEventArgs.cs (3)
67public StoreContentChangedEventArgs(StoreContentAction action, Annotation annotation) 100public Annotation Annotation 136private Annotation _annotation; // annotation that was updated
System\Windows\Annotations\Storage\XmlStreamStore.cs (22)
128public override void AddAnnotation(Annotation newAnnotation) 174public override Annotation DeleteAnnotation(Guid annotationId) 176Annotation annotation = null; 197annotation = (Annotation)_serializer.Deserialize(editor.ReadSubtree()); 238public override IList<Annotation> GetAnnotations(ContentLocator anchorLocator) 248IList<Annotation> annotations = null; 297public override IList<Annotation> GetAnnotations() 299IList<Annotation> annotations = null; 321public override Annotation GetAnnotation(Guid annotationId) 325Annotation annotation = null; 343annotation = (Annotation)_serializer.Deserialize(editor.ReadSubtree()); 657private IList<Annotation> MergeAndCacheAnnotations(Dictionary<Guid, Annotation> mapAnnotations, List<Guid> storeAnnotationsId) 660List<Annotation> annotations = new List<Annotation>((IEnumerable<Annotation>)mapAnnotations.Values); 672Annotation annot; 691private IList<Annotation> InternalGetAnnotations(string query, ContentLocator anchorLocator) 701Dictionary<Guid, Annotation> annotations = null; 954List<Annotation> mapAnnotations = _storeAnnotationsMap.FindDirtyAnnotations(); 955foreach (Annotation annotation in mapAnnotations) 1056private static readonly Serializer _serializer = new Serializer(typeof(Annotation));