1 instantiation of Annotation
PresentationFramework (1)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
911Annotation annotation = new Annotation(annotationType);
102 references to Annotation
PresentationFramework (102)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (4)
56internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel) 72internal AttachedAnnotation(LocatorManager manager, Annotation annotation, AnnotationResource anchor, Object attachedAnchor, AttachmentLevel attachmentLevel, DependencyObject parent) 134public Annotation Annotation { get { return _annotation; } } 309private Annotation _annotation;
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
325IList<Annotation> annotations = store.GetAnnotations(lists[0]); 335foreach (Annotation annotation in annotations)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (2)
495internal static void GetCargoColors(Annotation annot, ref Nullable<Color> backgroundColor, ref Nullable<Color> activeBackgroundColor) 586private void GetColors(Annotation annot, out Color backgroundColor, out Color activeBackgroundColor)
src\Framework\MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (15)
80public void AddAnnotation(Annotation annotation, bool dirty) 118public Dictionary<Guid, Annotation> FindAnnotations(ContentLocator anchorLocator) 123Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 132Annotation annotation = annotationsEnumerator.Current.Annotation; 182public Dictionary<Guid, Annotation> FindAnnotations() 184Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 197public Annotation FindAnnotation(Guid id) 212public List<Annotation> FindDirtyAnnotations() 214List<Annotation> annotations = new List<Annotation>(); 326public CachedAnnotation(Annotation annotation, bool dirty) 336public Annotation Annotation 353private Annotation _annotation;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
93public SNCAnnotation(Annotation annotation) 899private Annotation _annotation;
src\Framework\System\Windows\Annotations\AnchorInfo.cs (1)
34Annotation Annotation { get;}
src\Framework\System\Windows\Annotations\Annotation.cs (2)
578if (Annotation.IsNamespaceDeclaration(reader)) 692if (!Annotation.IsNamespaceDeclaration(reader))
src\Framework\System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (3)
55public AnnotationAuthorChangedEventArgs(Annotation annotation, AnnotationAction action, Object author) 88public Annotation Annotation 131private Annotation _annotation;
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
387IList<Annotation> annotations = _annotationStore.GetAnnotations(lists[0]); 397foreach (Annotation annotation in annotations)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (27)
63public static Annotation CreateHighlightForSelection(AnnotationService service, string author, Brush highlightBrush) 65Annotation highlight = null; 93public static Annotation CreateTextStickyNoteForSelection(AnnotationService service, string author) 109public static Annotation CreateInkStickyNoteForSelection(AnnotationService service, string author) 192public static IAnchorInfo GetAnchorInfo(AnnotationService service, Annotation annotation) 235attachedAnnotations = ResolveAnnotations(service, new Annotation[] { annotation }); 254attachedAnnotations = ResolveAnnotations(service, new Annotation[] { annotation }); 507private static Annotation CreateStickyNoteForSelection(AnnotationService service, XmlQualifiedName noteType, string author) 521Annotation annotation = null; 708IList<Annotation> annotations = null; 745List<Annotation> annotations = new List<Annotation>(); 775private static void AddRange(List<Annotation> annotations, IList<Annotation> newAnnotations) 778foreach (Annotation newAnnotation in newAnnotations) 781foreach (Annotation annotation in annotations) 795private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 801foreach (Annotation annot in annotations) 901private static Annotation CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author) 911Annotation annotation = new Annotation(annotationType); 932private static Annotation Highlight(AnnotationService service, string author, Brush highlightBrush, bool create) 968Annotation highlight = ProcessHighlights(service, anchor, author, color, create); 985private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create) 1021Annotation highlight = CreateHighlight(service, textRange, author, color); 1037private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color) 1041Annotation annotation = CreateAnnotationForSelection(service, textRange, HighlightComponent.TypeName, author); 1074private static void SetAnchor(AnnotationService service, Annotation annot, object selection)
src\Framework\System\Windows\Annotations\AnnotationResource.cs (1)
487if (!Annotation.IsNamespaceDeclaration(reader))
src\Framework\System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (3)
55public AnnotationResourceChangedEventArgs(Annotation annotation, AnnotationAction action, AnnotationResource resource) 88public Annotation Annotation 131private Annotation _annotation;
src\Framework\System\Windows\Annotations\AnnotationService.cs (4)
1335private void AnnotationAdded(Annotation annotation) 1394private AttachedAnnotationChangedEventArgs AnchorAdded(Annotation annotation, AnnotationResource anchor) 1425private AttachedAnnotationChangedEventArgs AnchorRemoved(Annotation annotation, AnnotationResource anchor) 1460private AttachedAnnotationChangedEventArgs AnchorModified(Annotation annotation, AnnotationResource anchor)
src\Framework\System\Windows\Annotations\LocatorGroup.cs (1)
149Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.Elements.ContentLocatorGroup);
src\Framework\System\Windows\Annotations\LocatorPartList.cs (3)
233Annotation.CheckForNonNamespaceAttribute(reader, AnnotationXmlConstants.Elements.ContentLocator); 256Annotation.CheckForNonNamespaceAttribute(reader, part.PartType.Name); 278if (!Annotation.IsNamespaceDeclaration(reader))
src\Framework\System\Windows\Annotations\Storage\AnnotationStore.cs (5)
77public abstract void AddAnnotation(Annotation newAnnotation); 85public abstract Annotation DeleteAnnotation(Guid annotationId); 99public abstract IList<Annotation> GetAnnotations(ContentLocator anchorLocator); 106public abstract IList <Annotation> GetAnnotations(); 114public abstract Annotation GetAnnotation(Guid annotationId);
src\Framework\System\Windows\Annotations\Storage\StoreContentChangedEventArgs.cs (3)
70public StoreContentChangedEventArgs(StoreContentAction action, Annotation annotation) 104public Annotation Annotation 140private Annotation _annotation; // annotation that was updated
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (22)
139public override void AddAnnotation(Annotation newAnnotation) 188public override Annotation DeleteAnnotation(Guid annotationId) 190Annotation annotation = null; 212annotation = (Annotation)_serializer.Deserialize(editor.ReadSubtree()); 254public override IList<Annotation> GetAnnotations(ContentLocator anchorLocator) 265IList<Annotation> annotations = null; 314public override IList<Annotation> GetAnnotations() 316IList<Annotation> annotations = null; 340public override Annotation GetAnnotation(Guid annotationId) 344Annotation annotation = null; 362annotation = (Annotation)_serializer.Deserialize(editor.ReadSubtree()); 679private IList<Annotation> MergeAndCacheAnnotations(Dictionary<Guid, Annotation> mapAnnotations, List<Guid> storeAnnotationsId) 682List<Annotation> annotations = new List<Annotation>((IEnumerable<Annotation>)mapAnnotations.Values); 694Annotation annot; 713private IList<Annotation> InternalGetAnnotations(string query, ContentLocator anchorLocator) 723Dictionary<Guid, Annotation> annotations = null; 983List<Annotation> mapAnnotations = _storeAnnotationsMap.FindDirtyAnnotations(); 984foreach (Annotation annotation in mapAnnotations) 1085private static readonly Serializer _serializer = new Serializer(typeof(Annotation));