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