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