2 types derived from DocumentViewerBase
PresentationFramework (2)
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
59
public class DocumentViewer :
DocumentViewerBase
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
39
public class FlowDocumentPageViewer :
DocumentViewerBase
, IJournalState
82 references to DocumentViewerBase
PresentationFramework (82)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
198
DocumentViewerBase
documentViewerBase = parent as
DocumentViewerBase
;
528
DocumentViewerBase
viewer = PathNode.GetParent(idp as DependencyObject) as
DocumentViewerBase
;
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (2)
42
internal MultiPageTextView(
DocumentViewerBase
viewer, UIElement renderScope, ITextContainer textContainer)
1550
private readonly
DocumentViewerBase
_viewer;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (10)
202
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
208
viewer = GetFdrHost(fdr) as
DocumentViewerBase
;
473
internal static DocumentPageView FindView(
DocumentViewerBase
viewer, int pageNb)
554
private static bool AreAllPagesVisible(
DocumentViewerBase
viewer, int startPage, int endPage)
587
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
593
viewer = GetFdrHost(fdr) as
DocumentViewerBase
;
1113
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
src\Framework\System\Windows\Annotations\AnnotationService.cs (22)
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));
113
public AnnotationService(
DocumentViewerBase
viewer)
211
DocumentViewerBase
viewer = _root as
DocumentViewerBase
;
229
_locatorManager.RegisterSelectionProcessor(new TextViewSelectionProcessor(), typeof(
DocumentViewerBase
));
276
DocumentViewerBase
viewer;
315
public static AnnotationService GetService(
DocumentViewerBase
viewer)
797
DocumentViewerBase
documentViewerBase;
1120
static private void GetViewerAndDocument(DependencyObject root, out
DocumentViewerBase
documentViewerBase, out IDocumentPaginatorSource document)
1122
documentViewerBase = root as
DocumentViewerBase
;
1136
documentViewerBase = AnnotationHelper.GetFdrHost(reader) as
DocumentViewerBase
;
1600
if (viewer is
DocumentViewerBase
)
1601
isFlow = ((
DocumentViewerBase
)viewer).Document is FlowDocument;
1700
private void RegisterOnDocumentViewer(
DocumentViewerBase
viewer)
1716
private void UnregisterOnDocumentViewer(
DocumentViewerBase
viewer)
1737
DocumentViewerBase
viewer = sender as
DocumentViewerBase
;
src\Framework\System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (2)
26
public DocumentViewerBaseAutomationPeer(
DocumentViewerBase
owner)
115
IDocumentPaginatorSource document = ((
DocumentViewerBase
)Owner).Document;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (8)
901
DocumentViewerBase
hostViewer;
903
if (
DocumentViewerBase
.GetIsMasterPage(this))
918
private
DocumentViewerBase
GetHostViewer()
920
DocumentViewerBase
hostViewer = null;
927
if (this.TemplatedParent is
DocumentViewerBase
)
929
hostViewer = (
DocumentViewerBase
)this.TemplatedParent;
937
if (visualParent is
DocumentViewerBase
)
939
hostViewer = (
DocumentViewerBase
)visualParent;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (27)
69
EventManager.RegisterClassHandler(typeof(
DocumentViewerBase
), RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(HandleRequestBringIntoView));
72
TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(
DocumentViewerBase
), new FrameworkPropertyMetadata(true));
253
typeof(
DocumentViewerBase
),
265
typeof(
DocumentViewerBase
),
281
typeof(
DocumentViewerBase
),
297
typeof(
DocumentViewerBase
),
313
typeof(
DocumentViewerBase
),
333
typeof(
DocumentViewerBase
),
1418
service.LocatorManager.RegisterSelectionProcessor(new TextViewSelectionProcessor(), typeof(
DocumentViewerBase
));
1476
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.PreviousPage,
1480
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.NextPage,
1484
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.FirstPage,
1488
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.LastPage,
1492
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.GoToPage,
1496
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), ApplicationCommands.Print,
1500
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), ApplicationCommands.CancelPrint,
1504
TextEditor.RegisterCommandHandlers(typeof(
DocumentViewerBase
), /*acceptsRichContent:*/true, /*readOnly:*/!IsEditingEnabled, /*registerEventListeners*/true);
1514
DocumentViewerBase
dv = target as
DocumentViewerBase
;
1544
DocumentViewerBase
dv = target as
DocumentViewerBase
;
1617
if (sender != null && sender is
DocumentViewerBase
)
1619
((
DocumentViewerBase
)sender).HandleRequestBringIntoView(args);
1628
Invariant.Assert(d != null && d is
DocumentViewerBase
);
1629
((
DocumentViewerBase
) d).DocumentChanged((IDocumentPaginatorSource) e.OldValue, (IDocumentPaginatorSource) e.NewValue);
1715
internal BringIntoViewState(
DocumentViewerBase
source, ContentPosition contentPosition, DependencyObject targetObject, Rect targetRect)
1722
internal
DocumentViewerBase
Source;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
259
case 167: t = () => typeof(
DocumentViewerBase
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
2389
Type type = typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
);
2390
DependencyProperty dp = System.Windows.Controls.Primitives.
DocumentViewerBase
.DocumentProperty;
2392
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3750
typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
),
src\Framework\System\Windows\Markup\KnownTypes.cs (2)
1763
return System.Windows.Controls.Primitives.
DocumentViewerBase
.DocumentProperty;
5711
case KnownElements.DocumentViewerBase: t = typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
); break;