95 references to AnnotationService
PresentationFramework (95)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (2)
280
AnnotationService
service =
AnnotationService
.GetService(this.Parent);
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (4)
118
AnnotationService
service =
AnnotationService
.GetService(node);
360
AnnotationService
service =
AnnotationService
.GetService(d);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (4)
275
AnnotationService
service =
AnnotationService
.GetService(node);
925
AnnotationService
svc =
AnnotationService
.GetService(startNode);
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
279
if (node.ReadLocalValue(
AnnotationService
.ServiceProperty) != DependencyProperty.UnsetValue)
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (2)
31
internal AnnotationComponentManager(
AnnotationService
service)
145
AnnotationComponentChooser chooser =
AnnotationService
.GetChooser(annotatedElement);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
108
AnnotationService
service = null;
112
service =
AnnotationService
.GetService(((IAnnotationComponent)snc).AnnotatedElement);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
321
AnnotationService
.SetSubTreeProcessorId(decorator, FixedPageProcessor.Id);
328
AnnotationService
.SetDataId(decorator, "FlowDocument");
System\Windows\Annotations\AnnotationHelper.cs (29)
44
public static Annotation CreateHighlightForSelection(
AnnotationService
service, string author, Brush highlightBrush)
74
public static Annotation CreateTextStickyNoteForSelection(
AnnotationService
service, string author)
90
public static Annotation CreateInkStickyNoteForSelection(
AnnotationService
service, string author)
105
public static void ClearHighlightsForSelection(
AnnotationService
service)
128
public static void DeleteTextStickyNotesForSelection(
AnnotationService
service)
151
public static void DeleteInkStickyNotesForSelection(
AnnotationService
service)
173
public static IAnchorInfo GetAnchorInfo(
AnnotationService
service, Annotation annotation)
284
CreateHighlightForSelection(
AnnotationService
.GetService(viewer), null, e.Parameter != null ? e.Parameter as Brush : null);
298
CreateTextStickyNoteForSelection(
AnnotationService
.GetService(viewer), e.Parameter as String);
312
CreateInkStickyNoteForSelection(
AnnotationService
.GetService(viewer), e.Parameter as String);
327
ClearHighlightsForSelection(
AnnotationService
.GetService(viewer));
342
DeleteTextStickyNotesForSelection(
AnnotationService
.GetService(viewer));
343
DeleteInkStickyNotesForSelection(
AnnotationService
.GetService(viewer));
362
AnnotationService
service =
AnnotationService
.GetService(viewer);
486
private static Annotation CreateStickyNoteForSelection(
AnnotationService
service, XmlQualifiedName noteType, string author)
559
private static IList<IAttachedAnnotation> GetSpannedAnnotations(
AnnotationService
service)
666
private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(
AnnotationService
service, ITextSelection selection)
716
private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFixed(
AnnotationService
service, int startPage, int endPage)
774
private static List<IAttachedAnnotation> ResolveAnnotations(
AnnotationService
service, IList<Annotation> annotations)
801
private static void DeleteSpannedAnnotations(
AnnotationService
service, XmlQualifiedName annotationType)
879
private static Annotation CreateAnnotationForSelection(
AnnotationService
service, ITextRange textSelection, XmlQualifiedName annotationType, string author)
910
private static Annotation Highlight(
AnnotationService
service, string author, Brush highlightBrush, bool create)
963
private static Annotation ProcessHighlights(
AnnotationService
service, ITextRange textRange, string author, Nullable<Color> color, bool create)
1015
private static Annotation CreateHighlight(
AnnotationService
service, ITextRange textRange, string author, Nullable<Color> color)
1052
private static void SetAnchor(
AnnotationService
service, Annotation annot, object selection)
1079
private static void CheckInputs(
AnnotationService
service)
1123
AnnotationService
service =
AnnotationService
.GetService(viewer);
System\Windows\Annotations\AnnotationService.cs (35)
178
_root.SetValue(
AnnotationService
.ServiceProperty, this);
274
_root.ClearValue(
AnnotationService
.ServiceProperty);
286
public static
AnnotationService
GetService(DocumentViewerBase viewer)
290
return viewer.GetValue(
AnnotationService
.ServiceProperty) as
AnnotationService
;
301
public static
AnnotationService
GetService(FlowDocumentReader reader)
305
return reader.GetValue(
AnnotationService
.ServiceProperty) as
AnnotationService
;
316
public static
AnnotationService
GetService(FlowDocumentScrollViewer viewer)
320
return viewer.GetValue(
AnnotationService
.ServiceProperty) as
AnnotationService
;
453
public static readonly RoutedUICommand CreateHighlightCommand = new RoutedUICommand(SR.CreateHighlight, "CreateHighlight", typeof(
AnnotationService
), null);
458
public static readonly RoutedUICommand CreateTextStickyNoteCommand = new RoutedUICommand(SR.CreateTextNote, "CreateTextStickyNote", typeof(
AnnotationService
), null);
463
public static readonly RoutedUICommand CreateInkStickyNoteCommand = new RoutedUICommand(SR.CreateInkNote, "CreateInkStickyNote", typeof(
AnnotationService
), null);
468
public static readonly RoutedUICommand ClearHighlightsCommand = new RoutedUICommand(SR.ClearHighlight, "ClearHighlights", typeof(
AnnotationService
), null);
473
public static readonly RoutedUICommand DeleteStickyNotesCommand = new RoutedUICommand(SR.DeleteNotes, "DeleteStickyNotes", typeof(
AnnotationService
), null);
478
public static readonly RoutedUICommand DeleteAnnotationsCommand = new RoutedUICommand(SR.DeleteAnnotations, "DeleteAnnotations", typeof(
AnnotationService
), null);
520
internal static
AnnotationService
GetService(DependencyObject d)
524
return d.GetValue(
AnnotationService
.ServiceProperty) as
AnnotationService
;
533
internal static readonly DependencyProperty ChooserProperty = DependencyProperty.RegisterAttached("Chooser", typeof(AnnotationComponentChooser), typeof(
AnnotationService
), new FrameworkPropertyMetadata(new AnnotationComponentChooser(), FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.OverridesInheritanceBehavior));
556
internal static readonly DependencyProperty SubTreeProcessorIdProperty = LocatorManager.SubTreeProcessorIdProperty.AddOwner(typeof(
AnnotationService
));
594
internal static readonly DependencyProperty DataIdProperty = DataIdProcessor.DataIdProperty.AddOwner(typeof(
AnnotationService
));
692
internal static readonly DependencyProperty ServiceProperty = DependencyProperty.RegisterAttached("Service", typeof(
AnnotationService
), typeof(
AnnotationService
), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.OverridesInheritanceBehavior));
1050
if (
AnnotationService
.GetService(root) != null)
1134
AnnotationService
existingService = node.ReadLocalValue(
AnnotationService
.ServiceProperty) as
AnnotationService
;
1194
List<IAttachedAnnotation> annotationsOnNode = node.GetValue(
AnnotationService
.AttachedAnnotationsProperty) as List<IAttachedAnnotation>;
1480
List<IAttachedAnnotation> list = element.GetValue(
AnnotationService
.AttachedAnnotationsProperty) as List<IAttachedAnnotation>;
1485
element.SetValue(
AnnotationService
.AttachedAnnotationsProperty, list);
1508
List<IAttachedAnnotation> list = element.GetValue(
AnnotationService
.AttachedAnnotationsProperty) as List<IAttachedAnnotation>;
1517
element.ClearValue(
AnnotationService
.AttachedAnnotationsProperty);
1728
private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<IAttachedAnnotation>), typeof(
AnnotationService
));
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
77
AnnotationService
.SetDataId(this, "FlowDocument");
953
AnnotationService
service =
AnnotationService
.GetService(this);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (11)
990
AnnotationService
service =
AnnotationService
.GetService(this);
1352
this.ClearValue(
AnnotationService
.DataIdProperty);
1354
AnnotationService
.SetSubTreeProcessorId(this, FixedPageProcessor.Id);
1358
AnnotationService
service =
AnnotationService
.GetService(this);
1371
AnnotationService
service =
AnnotationService
.GetService(this);
1379
AnnotationService
.SetDataId(this, "FlowDocument");
1384
this.ClearValue(
AnnotationService
.SubTreeProcessorIdProperty);
1385
this.ClearValue(
AnnotationService
.DataIdProperty);