38 references to AnnotationHelper
PresentationFramework (38)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
546
DocumentPageView view =
AnnotationHelper
.FindView(viewer, pageNb);
src\Framework\System\Windows\Annotations\AnnotationService.cs (37)
70
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(CreateHighlightCommand,
AnnotationHelper
.OnCreateHighlightCommand,
AnnotationHelper
.OnQueryCreateHighlightCommand));
72
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(CreateTextStickyNoteCommand,
AnnotationHelper
.OnCreateTextStickyNoteCommand,
AnnotationHelper
.OnQueryCreateTextStickyNoteCommand));
74
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(CreateInkStickyNoteCommand,
AnnotationHelper
.OnCreateInkStickyNoteCommand,
AnnotationHelper
.OnQueryCreateInkStickyNoteCommand));
76
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(ClearHighlightsCommand,
AnnotationHelper
.OnClearHighlightsCommand,
AnnotationHelper
.OnQueryClearHighlightsCommand));
78
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(DeleteStickyNotesCommand,
AnnotationHelper
.OnDeleteStickyNotesCommand,
AnnotationHelper
.OnQueryDeleteStickyNotesCommand));
80
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(DeleteAnnotationsCommand,
AnnotationHelper
.OnDeleteAnnotationsCommand,
AnnotationHelper
.OnQueryDeleteAnnotationsCommand));
82
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(CreateHighlightCommand,
AnnotationHelper
.OnCreateHighlightCommand,
AnnotationHelper
.OnQueryCreateHighlightCommand));
84
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(CreateTextStickyNoteCommand,
AnnotationHelper
.OnCreateTextStickyNoteCommand,
AnnotationHelper
.OnQueryCreateTextStickyNoteCommand));
86
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(CreateInkStickyNoteCommand,
AnnotationHelper
.OnCreateInkStickyNoteCommand,
AnnotationHelper
.OnQueryCreateInkStickyNoteCommand));
88
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(ClearHighlightsCommand,
AnnotationHelper
.OnClearHighlightsCommand,
AnnotationHelper
.OnQueryClearHighlightsCommand));
90
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(DeleteStickyNotesCommand,
AnnotationHelper
.OnDeleteStickyNotesCommand,
AnnotationHelper
.OnQueryDeleteStickyNotesCommand));
92
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(DeleteAnnotationsCommand,
AnnotationHelper
.OnDeleteAnnotationsCommand,
AnnotationHelper
.OnQueryDeleteAnnotationsCommand));
94
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(CreateHighlightCommand,
AnnotationHelper
.OnCreateHighlightCommand,
AnnotationHelper
.OnQueryCreateHighlightCommand));
96
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(CreateTextStickyNoteCommand,
AnnotationHelper
.OnCreateTextStickyNoteCommand,
AnnotationHelper
.OnQueryCreateTextStickyNoteCommand));
98
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(CreateInkStickyNoteCommand,
AnnotationHelper
.OnCreateInkStickyNoteCommand,
AnnotationHelper
.OnQueryCreateInkStickyNoteCommand));
100
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(ClearHighlightsCommand,
AnnotationHelper
.OnClearHighlightsCommand,
AnnotationHelper
.OnQueryClearHighlightsCommand));
102
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(DeleteStickyNotesCommand,
AnnotationHelper
.OnDeleteStickyNotesCommand,
AnnotationHelper
.OnQueryDeleteStickyNotesCommand));
104
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(DeleteAnnotationsCommand,
AnnotationHelper
.OnDeleteAnnotationsCommand,
AnnotationHelper
.OnQueryDeleteAnnotationsCommand));
1136
documentViewerBase =
AnnotationHelper
.GetFdrHost(reader) as DocumentViewerBase;