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