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