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)
129AnnotationService service = AnnotationService.GetService(node); 373AnnotationService service = AnnotationService.GetService(d);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (4)
286AnnotationService service = AnnotationService.GetService(node); 937AnnotationService svc = AnnotationService.GetService(startNode);
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
291if (node.ReadLocalValue(AnnotationService.ServiceProperty) != DependencyProperty.UnsetValue)
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (2)
31internal AnnotationComponentManager(AnnotationService service) 146AnnotationComponentChooser 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)
317AnnotationService.SetSubTreeProcessorId(decorator, FixedPageProcessor.Id); 324AnnotationService.SetDataId(decorator, "FlowDocument");
System\Windows\Annotations\AnnotationHelper.cs (29)
46public static Annotation CreateHighlightForSelection(AnnotationService service, string author, Brush highlightBrush) 76public static Annotation CreateTextStickyNoteForSelection(AnnotationService service, string author) 92public static Annotation CreateInkStickyNoteForSelection(AnnotationService service, string author) 107public static void ClearHighlightsForSelection(AnnotationService service) 130public static void DeleteTextStickyNotesForSelection(AnnotationService service) 153public static void DeleteInkStickyNotesForSelection(AnnotationService service) 175public static IAnchorInfo GetAnchorInfo(AnnotationService service, Annotation annotation) 286CreateHighlightForSelection(AnnotationService.GetService(viewer), null, e.Parameter != null ? e.Parameter as Brush : null); 300CreateTextStickyNoteForSelection(AnnotationService.GetService(viewer), e.Parameter as String); 314CreateInkStickyNoteForSelection(AnnotationService.GetService(viewer), e.Parameter as String); 329ClearHighlightsForSelection(AnnotationService.GetService(viewer)); 344DeleteTextStickyNotesForSelection(AnnotationService.GetService(viewer)); 345DeleteInkStickyNotesForSelection(AnnotationService.GetService(viewer)); 364AnnotationService service = AnnotationService.GetService(viewer); 488private static Annotation CreateStickyNoteForSelection(AnnotationService service, XmlQualifiedName noteType, string author) 561private static IList<IAttachedAnnotation> GetSpannedAnnotations(AnnotationService service) 668private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection) 718private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage) 776private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 803private static void DeleteSpannedAnnotations(AnnotationService service, XmlQualifiedName annotationType) 881private static Annotation CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author) 912private static Annotation Highlight(AnnotationService service, string author, Brush highlightBrush, bool create) 965private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create) 1017private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color) 1054private static void SetAnchor(AnnotationService service, Annotation annot, object selection) 1081private static void CheckInputs(AnnotationService service) 1125AnnotationService service = AnnotationService.GetService(viewer);
System\Windows\Annotations\AnnotationService.cs (35)
179_root.SetValue(AnnotationService.ServiceProperty, this); 275_root.ClearValue(AnnotationService.ServiceProperty); 287public static AnnotationService GetService(DocumentViewerBase viewer) 291return viewer.GetValue(AnnotationService.ServiceProperty) as AnnotationService; 302public static AnnotationService GetService(FlowDocumentReader reader) 306return reader.GetValue(AnnotationService.ServiceProperty) as AnnotationService; 317public static AnnotationService GetService(FlowDocumentScrollViewer viewer) 321return viewer.GetValue(AnnotationService.ServiceProperty) as AnnotationService; 454public static readonly RoutedUICommand CreateHighlightCommand = new RoutedUICommand(SR.CreateHighlight, "CreateHighlight", typeof(AnnotationService), null); 459public static readonly RoutedUICommand CreateTextStickyNoteCommand = new RoutedUICommand(SR.CreateTextNote, "CreateTextStickyNote", typeof(AnnotationService), null); 464public static readonly RoutedUICommand CreateInkStickyNoteCommand = new RoutedUICommand(SR.CreateInkNote, "CreateInkStickyNote", typeof(AnnotationService), null); 469public static readonly RoutedUICommand ClearHighlightsCommand = new RoutedUICommand(SR.ClearHighlight, "ClearHighlights", typeof(AnnotationService), null); 474public static readonly RoutedUICommand DeleteStickyNotesCommand = new RoutedUICommand(SR.DeleteNotes, "DeleteStickyNotes", typeof(AnnotationService), null); 479public static readonly RoutedUICommand DeleteAnnotationsCommand = new RoutedUICommand(SR.DeleteAnnotations, "DeleteAnnotations", typeof(AnnotationService), null); 521internal static AnnotationService GetService(DependencyObject d) 525return d.GetValue(AnnotationService.ServiceProperty) as AnnotationService; 535internal static readonly DependencyProperty ChooserProperty = DependencyProperty.RegisterAttached("Chooser", typeof(AnnotationComponentChooser), typeof(AnnotationService), new FrameworkPropertyMetadata(new AnnotationComponentChooser(), FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.OverridesInheritanceBehavior)); 559internal static readonly DependencyProperty SubTreeProcessorIdProperty = LocatorManager.SubTreeProcessorIdProperty.AddOwner(typeof(AnnotationService)); 598internal static readonly DependencyProperty DataIdProperty = DataIdProcessor.DataIdProperty.AddOwner(typeof(AnnotationService)); 697internal static readonly DependencyProperty ServiceProperty = DependencyProperty.RegisterAttached("Service", typeof(AnnotationService), typeof(AnnotationService), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.OverridesInheritanceBehavior)); 1055if (AnnotationService.GetService(root) != null) 1139AnnotationService existingService = node.ReadLocalValue(AnnotationService.ServiceProperty) as AnnotationService; 1199List<IAttachedAnnotation> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1485List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1490element.SetValue(AnnotationService.AttachedAnnotationsProperty, list); 1513List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1522element.ClearValue(AnnotationService.AttachedAnnotationsProperty); 1734private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<IAttachedAnnotation>), typeof(AnnotationService));
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
77AnnotationService.SetDataId(this, "FlowDocument"); 957AnnotationService service = AnnotationService.GetService(this);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (11)
1007AnnotationService service = AnnotationService.GetService(this); 1377this.ClearValue(AnnotationService.DataIdProperty); 1379AnnotationService.SetSubTreeProcessorId(this, FixedPageProcessor.Id); 1383AnnotationService service = AnnotationService.GetService(this); 1396AnnotationService service = AnnotationService.GetService(this); 1404AnnotationService.SetDataId(this, "FlowDocument"); 1409this.ClearValue(AnnotationService.SubTreeProcessorIdProperty); 1410this.ClearValue(AnnotationService.DataIdProperty);