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