95 references to AnnotationService
PresentationFramework (95)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (2)
290AnnotationService service = AnnotationService.GetService(this.Parent);
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (4)
147AnnotationService service = AnnotationService.GetService(node); 399AnnotationService service = AnnotationService.GetService(d);
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (4)
313AnnotationService service = AnnotationService.GetService(node); 974AnnotationService svc = AnnotationService.GetService(startNode);
src\Framework\MS\Internal\Annotations\Anchoring\PathNode.cs (1)
305if (node.ReadLocalValue(AnnotationService.ServiceProperty) != DependencyProperty.UnsetValue)
src\Framework\MS\Internal\Annotations\Component\AnnotationComponentManager.cs (2)
40internal AnnotationComponentManager(AnnotationService service) 155AnnotationComponentChooser chooser = AnnotationService.GetChooser(annotatedElement);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
124AnnotationService service = null; 128service = AnnotationService.GetService(((IAnnotationComponent)snc).AnnotatedElement);
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
332AnnotationService.SetSubTreeProcessorId(decorator, FixedPageProcessor.Id); 339AnnotationService.SetDataId(decorator, "FlowDocument");
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (29)
63public static Annotation CreateHighlightForSelection(AnnotationService service, string author, Brush highlightBrush) 93public static Annotation CreateTextStickyNoteForSelection(AnnotationService service, string author) 109public static Annotation CreateInkStickyNoteForSelection(AnnotationService service, string author) 124public static void ClearHighlightsForSelection(AnnotationService service) 147public static void DeleteTextStickyNotesForSelection(AnnotationService service) 170public static void DeleteInkStickyNotesForSelection(AnnotationService service) 192public static IAnchorInfo GetAnchorInfo(AnnotationService service, Annotation annotation) 304CreateHighlightForSelection(AnnotationService.GetService(viewer), null, e.Parameter != null ? e.Parameter as Brush : null); 318CreateTextStickyNoteForSelection(AnnotationService.GetService(viewer), e.Parameter as String); 332CreateInkStickyNoteForSelection(AnnotationService.GetService(viewer), e.Parameter as String); 347ClearHighlightsForSelection(AnnotationService.GetService(viewer)); 362DeleteTextStickyNotesForSelection(AnnotationService.GetService(viewer)); 363DeleteInkStickyNotesForSelection(AnnotationService.GetService(viewer)); 382AnnotationService service = AnnotationService.GetService(viewer); 507private static Annotation CreateStickyNoteForSelection(AnnotationService service, XmlQualifiedName noteType, string author) 580private static IList<IAttachedAnnotation> GetSpannedAnnotations(AnnotationService service) 687private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(AnnotationService service, ITextSelection selection) 737private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFixed(AnnotationService service, int startPage, int endPage) 795private static List<IAttachedAnnotation> ResolveAnnotations(AnnotationService service, IList<Annotation> annotations) 822private static void DeleteSpannedAnnotations(AnnotationService service, XmlQualifiedName annotationType) 901private static Annotation CreateAnnotationForSelection(AnnotationService service, ITextRange textSelection, XmlQualifiedName annotationType, string author) 932private static Annotation Highlight(AnnotationService service, string author, Brush highlightBrush, bool create) 985private static Annotation ProcessHighlights(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color, bool create) 1037private static Annotation CreateHighlight(AnnotationService service, ITextRange textRange, string author, Nullable<Color> color) 1074private static void SetAnchor(AnnotationService service, Annotation annot, object selection) 1101private static void CheckInputs(AnnotationService service) 1148AnnotationService service = AnnotationService.GetService(viewer);
src\Framework\System\Windows\Annotations\AnnotationService.cs (35)
207_root.SetValue(AnnotationService.ServiceProperty, this); 303_root.ClearValue(AnnotationService.ServiceProperty); 315public static AnnotationService GetService(DocumentViewerBase viewer) 320return viewer.GetValue(AnnotationService.ServiceProperty) as AnnotationService; 331public static AnnotationService GetService(FlowDocumentReader reader) 336return reader.GetValue(AnnotationService.ServiceProperty) as AnnotationService; 347public static AnnotationService GetService(FlowDocumentScrollViewer viewer) 352return viewer.GetValue(AnnotationService.ServiceProperty) as AnnotationService; 488public static readonly RoutedUICommand CreateHighlightCommand = new RoutedUICommand(SR.Get(SRID.CreateHighlight), "CreateHighlight", typeof(AnnotationService), null); 493public static readonly RoutedUICommand CreateTextStickyNoteCommand = new RoutedUICommand(SR.Get(SRID.CreateTextNote), "CreateTextStickyNote", typeof(AnnotationService), null); 498public static readonly RoutedUICommand CreateInkStickyNoteCommand = new RoutedUICommand(SR.Get(SRID.CreateInkNote), "CreateInkStickyNote", typeof(AnnotationService), null); 503public static readonly RoutedUICommand ClearHighlightsCommand = new RoutedUICommand(SR.Get(SRID.ClearHighlight), "ClearHighlights", typeof(AnnotationService), null); 508public static readonly RoutedUICommand DeleteStickyNotesCommand = new RoutedUICommand(SR.Get(SRID.DeleteNotes), "DeleteStickyNotes", typeof(AnnotationService), null); 513public static readonly RoutedUICommand DeleteAnnotationsCommand = new RoutedUICommand(SR.Get(SRID.DeleteAnnotations), "DeleteAnnotations", typeof(AnnotationService), null); 555internal static AnnotationService GetService(DependencyObject d) 560return d.GetValue(AnnotationService.ServiceProperty) as AnnotationService; 570internal static readonly DependencyProperty ChooserProperty = DependencyProperty.RegisterAttached("Chooser", typeof(AnnotationComponentChooser), typeof(AnnotationService), new FrameworkPropertyMetadata(new AnnotationComponentChooser(), FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.OverridesInheritanceBehavior)); 595internal static readonly DependencyProperty SubTreeProcessorIdProperty = LocatorManager.SubTreeProcessorIdProperty.AddOwner(typeof(AnnotationService)); 638internal static readonly DependencyProperty DataIdProperty = DataIdProcessor.DataIdProperty.AddOwner(typeof(AnnotationService)); 741internal static readonly DependencyProperty ServiceProperty = DependencyProperty.RegisterAttached("Service", typeof(AnnotationService), typeof(AnnotationService), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.OverridesInheritanceBehavior)); 1105if (AnnotationService.GetService(root) != null) 1191AnnotationService existingService = node.ReadLocalValue(AnnotationService.ServiceProperty) as AnnotationService; 1251List<IAttachedAnnotation> annotationsOnNode = node.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1537List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1542element.SetValue(AnnotationService.AttachedAnnotationsProperty, list); 1565List<IAttachedAnnotation> list = element.GetValue(AnnotationService.AttachedAnnotationsProperty) as List<IAttachedAnnotation>; 1574element.ClearValue(AnnotationService.AttachedAnnotationsProperty); 1788private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<IAttachedAnnotation>), typeof(AnnotationService));
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
81AnnotationService.SetDataId(this, "FlowDocument"); 968AnnotationService service = AnnotationService.GetService(this);
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (11)
1024AnnotationService service = AnnotationService.GetService(this); 1394this.ClearValue(AnnotationService.DataIdProperty); 1396AnnotationService.SetSubTreeProcessorId(this, FixedPageProcessor.Id); 1400AnnotationService service = AnnotationService.GetService(this); 1413AnnotationService service = AnnotationService.GetService(this); 1421AnnotationService.SetDataId(this, "FlowDocument"); 1426this.ClearValue(AnnotationService.SubTreeProcessorIdProperty); 1427this.ClearValue(AnnotationService.DataIdProperty);