95 references to AnnotationService
PresentationFramework (95)
MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (2)
279
AnnotationService
service =
AnnotationService
.GetService(this.Parent);
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (4)
117
AnnotationService
service =
AnnotationService
.GetService(node);
359
AnnotationService
service =
AnnotationService
.GetService(d);
MS\Internal\Annotations\Anchoring\LocatorManager.cs (4)
274
AnnotationService
service =
AnnotationService
.GetService(node);
924
AnnotationService
svc =
AnnotationService
.GetService(startNode);
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
278
if (node.ReadLocalValue(
AnnotationService
.ServiceProperty) != DependencyProperty.UnsetValue)
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (2)
30
internal AnnotationComponentManager(
AnnotationService
service)
144
AnnotationComponentChooser chooser =
AnnotationService
.GetChooser(annotatedElement);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
107
AnnotationService
service = null;
111
service =
AnnotationService
.GetService(((IAnnotationComponent)snc).AnnotatedElement);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
320
AnnotationService
.SetSubTreeProcessorId(decorator, FixedPageProcessor.Id);
327
AnnotationService
.SetDataId(decorator, "FlowDocument");
System\Windows\Annotations\AnnotationHelper.cs (29)
43
public static Annotation CreateHighlightForSelection(
AnnotationService
service, string author, Brush highlightBrush)
73
public static Annotation CreateTextStickyNoteForSelection(
AnnotationService
service, string author)
89
public static Annotation CreateInkStickyNoteForSelection(
AnnotationService
service, string author)
104
public static void ClearHighlightsForSelection(
AnnotationService
service)
127
public static void DeleteTextStickyNotesForSelection(
AnnotationService
service)
150
public static void DeleteInkStickyNotesForSelection(
AnnotationService
service)
172
public static IAnchorInfo GetAnchorInfo(
AnnotationService
service, Annotation annotation)
283
CreateHighlightForSelection(
AnnotationService
.GetService(viewer), null, e.Parameter != null ? e.Parameter as Brush : null);
297
CreateTextStickyNoteForSelection(
AnnotationService
.GetService(viewer), e.Parameter as String);
311
CreateInkStickyNoteForSelection(
AnnotationService
.GetService(viewer), e.Parameter as String);
326
ClearHighlightsForSelection(
AnnotationService
.GetService(viewer));
341
DeleteTextStickyNotesForSelection(
AnnotationService
.GetService(viewer));
342
DeleteInkStickyNotesForSelection(
AnnotationService
.GetService(viewer));
361
AnnotationService
service =
AnnotationService
.GetService(viewer);
485
private static Annotation CreateStickyNoteForSelection(
AnnotationService
service, XmlQualifiedName noteType, string author)
558
private static IList<IAttachedAnnotation> GetSpannedAnnotations(
AnnotationService
service)
665
private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFlow(
AnnotationService
service, ITextSelection selection)
715
private static IList<IAttachedAnnotation> GetSpannedAnnotationsForFixed(
AnnotationService
service, int startPage, int endPage)
773
private static List<IAttachedAnnotation> ResolveAnnotations(
AnnotationService
service, IList<Annotation> annotations)
800
private static void DeleteSpannedAnnotations(
AnnotationService
service, XmlQualifiedName annotationType)
878
private static Annotation CreateAnnotationForSelection(
AnnotationService
service, ITextRange textSelection, XmlQualifiedName annotationType, string author)
909
private static Annotation Highlight(
AnnotationService
service, string author, Brush highlightBrush, bool create)
962
private static Annotation ProcessHighlights(
AnnotationService
service, ITextRange textRange, string author, Nullable<Color> color, bool create)
1014
private static Annotation CreateHighlight(
AnnotationService
service, ITextRange textRange, string author, Nullable<Color> color)
1051
private static void SetAnchor(
AnnotationService
service, Annotation annot, object selection)
1078
private static void CheckInputs(
AnnotationService
service)
1122
AnnotationService
service =
AnnotationService
.GetService(viewer);
System\Windows\Annotations\AnnotationService.cs (35)
177
_root.SetValue(
AnnotationService
.ServiceProperty, this);
273
_root.ClearValue(
AnnotationService
.ServiceProperty);
285
public static
AnnotationService
GetService(DocumentViewerBase viewer)
289
return viewer.GetValue(
AnnotationService
.ServiceProperty) as
AnnotationService
;
300
public static
AnnotationService
GetService(FlowDocumentReader reader)
304
return reader.GetValue(
AnnotationService
.ServiceProperty) as
AnnotationService
;
315
public static
AnnotationService
GetService(FlowDocumentScrollViewer viewer)
319
return viewer.GetValue(
AnnotationService
.ServiceProperty) as
AnnotationService
;
452
public static readonly RoutedUICommand CreateHighlightCommand = new RoutedUICommand(SR.CreateHighlight, "CreateHighlight", typeof(
AnnotationService
), null);
457
public static readonly RoutedUICommand CreateTextStickyNoteCommand = new RoutedUICommand(SR.CreateTextNote, "CreateTextStickyNote", typeof(
AnnotationService
), null);
462
public static readonly RoutedUICommand CreateInkStickyNoteCommand = new RoutedUICommand(SR.CreateInkNote, "CreateInkStickyNote", typeof(
AnnotationService
), null);
467
public static readonly RoutedUICommand ClearHighlightsCommand = new RoutedUICommand(SR.ClearHighlight, "ClearHighlights", typeof(
AnnotationService
), null);
472
public static readonly RoutedUICommand DeleteStickyNotesCommand = new RoutedUICommand(SR.DeleteNotes, "DeleteStickyNotes", typeof(
AnnotationService
), null);
477
public static readonly RoutedUICommand DeleteAnnotationsCommand = new RoutedUICommand(SR.DeleteAnnotations, "DeleteAnnotations", typeof(
AnnotationService
), null);
519
internal static
AnnotationService
GetService(DependencyObject d)
523
return d.GetValue(
AnnotationService
.ServiceProperty) as
AnnotationService
;
532
internal static readonly DependencyProperty ChooserProperty = DependencyProperty.RegisterAttached("Chooser", typeof(AnnotationComponentChooser), typeof(
AnnotationService
), new FrameworkPropertyMetadata(new AnnotationComponentChooser(), FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.OverridesInheritanceBehavior));
555
internal static readonly DependencyProperty SubTreeProcessorIdProperty = LocatorManager.SubTreeProcessorIdProperty.AddOwner(typeof(
AnnotationService
));
593
internal static readonly DependencyProperty DataIdProperty = DataIdProcessor.DataIdProperty.AddOwner(typeof(
AnnotationService
));
691
internal static readonly DependencyProperty ServiceProperty = DependencyProperty.RegisterAttached("Service", typeof(
AnnotationService
), typeof(
AnnotationService
), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.Inherits | FrameworkPropertyMetadataOptions.OverridesInheritanceBehavior));
1049
if (
AnnotationService
.GetService(root) != null)
1133
AnnotationService
existingService = node.ReadLocalValue(
AnnotationService
.ServiceProperty) as
AnnotationService
;
1193
List<IAttachedAnnotation> annotationsOnNode = node.GetValue(
AnnotationService
.AttachedAnnotationsProperty) as List<IAttachedAnnotation>;
1479
List<IAttachedAnnotation> list = element.GetValue(
AnnotationService
.AttachedAnnotationsProperty) as List<IAttachedAnnotation>;
1484
element.SetValue(
AnnotationService
.AttachedAnnotationsProperty, list);
1507
List<IAttachedAnnotation> list = element.GetValue(
AnnotationService
.AttachedAnnotationsProperty) as List<IAttachedAnnotation>;
1516
element.ClearValue(
AnnotationService
.AttachedAnnotationsProperty);
1727
private static readonly DependencyProperty AttachedAnnotationsProperty = DependencyProperty.RegisterAttached("AttachedAnnotations", typeof(IList<IAttachedAnnotation>), typeof(
AnnotationService
));
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
76
AnnotationService
.SetDataId(this, "FlowDocument");
952
AnnotationService
service =
AnnotationService
.GetService(this);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (11)
989
AnnotationService
service =
AnnotationService
.GetService(this);
1351
this.ClearValue(
AnnotationService
.DataIdProperty);
1353
AnnotationService
.SetSubTreeProcessorId(this, FixedPageProcessor.Id);
1357
AnnotationService
service =
AnnotationService
.GetService(this);
1370
AnnotationService
service =
AnnotationService
.GetService(this);
1378
AnnotationService
.SetDataId(this, "FlowDocument");
1383
this.ClearValue(
AnnotationService
.SubTreeProcessorIdProperty);
1384
this.ClearValue(
AnnotationService
.DataIdProperty);