2 types derived from DocumentViewerBase
PresentationFramework (2)
System\Windows\Controls\DocumentViewer.cs (1)
34
public class DocumentViewer :
DocumentViewerBase
System\Windows\Controls\SinglePageViewer.cs (1)
34
public class FlowDocumentPageViewer :
DocumentViewerBase
, IJournalState
82 references to DocumentViewerBase
PresentationFramework (82)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
183
DocumentViewerBase
documentViewerBase = parent as
DocumentViewerBase
;
509
DocumentViewerBase
viewer = PathNode.GetParent(idp as DependencyObject) as
DocumentViewerBase
;
MS\Internal\Documents\MultiPageTextView.cs (2)
38
internal MultiPageTextView(
DocumentViewerBase
viewer, UIElement renderScope, ITextContainer textContainer)
1543
private readonly
DocumentViewerBase
_viewer;
System\Windows\Annotations\AnnotationHelper.cs (10)
182
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
188
viewer = GetFdrHost(fdr) as
DocumentViewerBase
;
452
internal static DocumentPageView FindView(
DocumentViewerBase
viewer, int pageNb)
533
private static bool AreAllPagesVisible(
DocumentViewerBase
viewer, int startPage, int endPage)
566
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
572
viewer = GetFdrHost(fdr) as
DocumentViewerBase
;
1088
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
System\Windows\Annotations\AnnotationService.cs (22)
46
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
48
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
50
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
52
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
54
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
56
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
89
public AnnotationService(
DocumentViewerBase
viewer)
182
DocumentViewerBase
viewer = _root as
DocumentViewerBase
;
200
_locatorManager.RegisterSelectionProcessor(new TextViewSelectionProcessor(), typeof(
DocumentViewerBase
));
247
DocumentViewerBase
viewer;
286
public static AnnotationService GetService(
DocumentViewerBase
viewer)
748
DocumentViewerBase
documentViewerBase;
1065
static private void GetViewerAndDocument(DependencyObject root, out
DocumentViewerBase
documentViewerBase, out IDocumentPaginatorSource document)
1067
documentViewerBase = root as
DocumentViewerBase
;
1081
documentViewerBase = AnnotationHelper.GetFdrHost(reader) as
DocumentViewerBase
;
1543
if (viewer is
DocumentViewerBase
)
1544
isFlow = ((
DocumentViewerBase
)viewer).Document is FlowDocument;
1643
private void RegisterOnDocumentViewer(
DocumentViewerBase
viewer)
1659
private void UnregisterOnDocumentViewer(
DocumentViewerBase
viewer)
1680
DocumentViewerBase
viewer = sender as
DocumentViewerBase
;
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (2)
23
public DocumentViewerBaseAutomationPeer(
DocumentViewerBase
owner)
112
IDocumentPaginatorSource document = ((
DocumentViewerBase
)Owner).Document;
System\Windows\Controls\Primitives\DocumentPageView.cs (8)
892
DocumentViewerBase
hostViewer;
894
if (
DocumentViewerBase
.GetIsMasterPage(this))
909
private
DocumentViewerBase
GetHostViewer()
911
DocumentViewerBase
hostViewer = null;
918
if (this.TemplatedParent is
DocumentViewerBase
)
920
hostViewer = (
DocumentViewerBase
)this.TemplatedParent;
928
if (visualParent is
DocumentViewerBase
)
930
hostViewer = (
DocumentViewerBase
)visualParent;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (27)
50
EventManager.RegisterClassHandler(typeof(
DocumentViewerBase
), RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(HandleRequestBringIntoView));
53
TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(
DocumentViewerBase
), new FrameworkPropertyMetadata(true));
234
typeof(
DocumentViewerBase
),
246
typeof(
DocumentViewerBase
),
262
typeof(
DocumentViewerBase
),
278
typeof(
DocumentViewerBase
),
294
typeof(
DocumentViewerBase
),
314
typeof(
DocumentViewerBase
),
1391
service.LocatorManager.RegisterSelectionProcessor(new TextViewSelectionProcessor(), typeof(
DocumentViewerBase
));
1449
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.PreviousPage,
1453
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.NextPage,
1457
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.FirstPage,
1461
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.LastPage,
1465
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.GoToPage,
1469
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), ApplicationCommands.Print,
1473
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), ApplicationCommands.CancelPrint,
1477
TextEditor.RegisterCommandHandlers(typeof(
DocumentViewerBase
), /*acceptsRichContent:*/true, /*readOnly:*/!IsEditingEnabled, /*registerEventListeners*/true);
1487
DocumentViewerBase
dv = target as
DocumentViewerBase
;
1517
DocumentViewerBase
dv = target as
DocumentViewerBase
;
1588
if (sender != null && sender is
DocumentViewerBase
)
1590
((
DocumentViewerBase
)sender).HandleRequestBringIntoView(args);
1599
Invariant.Assert(d != null && d is
DocumentViewerBase
);
1600
((
DocumentViewerBase
) d).DocumentChanged((IDocumentPaginatorSource) e.OldValue, (IDocumentPaginatorSource) e.NewValue);
1686
internal BringIntoViewState(
DocumentViewerBase
source, ContentPosition contentPosition, DependencyObject targetObject, Rect targetRect)
1693
internal
DocumentViewerBase
Source;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
261
case 167: t = () => typeof(
DocumentViewerBase
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
2459
Type type = typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
);
2460
DependencyProperty dp = System.Windows.Controls.Primitives.
DocumentViewerBase
.DocumentProperty;
2462
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4030
typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
),
System\Windows\Markup\KnownTypes.cs (2)
1756
return System.Windows.Controls.Primitives.
DocumentViewerBase
.DocumentProperty;
5715
case KnownElements.DocumentViewerBase: t = typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
); break;