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