38 references to AnnotationHelper
PresentationFramework (38)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
527
DocumentPageView view =
AnnotationHelper
.FindView(viewer, pageNb);
System\Windows\Annotations\AnnotationService.cs (37)
47
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(CreateHighlightCommand,
AnnotationHelper
.OnCreateHighlightCommand,
AnnotationHelper
.OnQueryCreateHighlightCommand));
49
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(CreateTextStickyNoteCommand,
AnnotationHelper
.OnCreateTextStickyNoteCommand,
AnnotationHelper
.OnQueryCreateTextStickyNoteCommand));
51
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(CreateInkStickyNoteCommand,
AnnotationHelper
.OnCreateInkStickyNoteCommand,
AnnotationHelper
.OnQueryCreateInkStickyNoteCommand));
53
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(ClearHighlightsCommand,
AnnotationHelper
.OnClearHighlightsCommand,
AnnotationHelper
.OnQueryClearHighlightsCommand));
55
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(DeleteStickyNotesCommand,
AnnotationHelper
.OnDeleteStickyNotesCommand,
AnnotationHelper
.OnQueryDeleteStickyNotesCommand));
57
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(DeleteAnnotationsCommand,
AnnotationHelper
.OnDeleteAnnotationsCommand,
AnnotationHelper
.OnQueryDeleteAnnotationsCommand));
59
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(CreateHighlightCommand,
AnnotationHelper
.OnCreateHighlightCommand,
AnnotationHelper
.OnQueryCreateHighlightCommand));
61
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(CreateTextStickyNoteCommand,
AnnotationHelper
.OnCreateTextStickyNoteCommand,
AnnotationHelper
.OnQueryCreateTextStickyNoteCommand));
63
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(CreateInkStickyNoteCommand,
AnnotationHelper
.OnCreateInkStickyNoteCommand,
AnnotationHelper
.OnQueryCreateInkStickyNoteCommand));
65
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(ClearHighlightsCommand,
AnnotationHelper
.OnClearHighlightsCommand,
AnnotationHelper
.OnQueryClearHighlightsCommand));
67
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(DeleteStickyNotesCommand,
AnnotationHelper
.OnDeleteStickyNotesCommand,
AnnotationHelper
.OnQueryDeleteStickyNotesCommand));
69
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(DeleteAnnotationsCommand,
AnnotationHelper
.OnDeleteAnnotationsCommand,
AnnotationHelper
.OnQueryDeleteAnnotationsCommand));
71
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(CreateHighlightCommand,
AnnotationHelper
.OnCreateHighlightCommand,
AnnotationHelper
.OnQueryCreateHighlightCommand));
73
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(CreateTextStickyNoteCommand,
AnnotationHelper
.OnCreateTextStickyNoteCommand,
AnnotationHelper
.OnQueryCreateTextStickyNoteCommand));
75
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(CreateInkStickyNoteCommand,
AnnotationHelper
.OnCreateInkStickyNoteCommand,
AnnotationHelper
.OnQueryCreateInkStickyNoteCommand));
77
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(ClearHighlightsCommand,
AnnotationHelper
.OnClearHighlightsCommand,
AnnotationHelper
.OnQueryClearHighlightsCommand));
79
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(DeleteStickyNotesCommand,
AnnotationHelper
.OnDeleteStickyNotesCommand,
AnnotationHelper
.OnQueryDeleteStickyNotesCommand));
81
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(DeleteAnnotationsCommand,
AnnotationHelper
.OnDeleteAnnotationsCommand,
AnnotationHelper
.OnQueryDeleteAnnotationsCommand));
1086
documentViewerBase =
AnnotationHelper
.GetFdrHost(reader) as DocumentViewerBase;