2 types derived from DocumentViewerBase
PresentationFramework (2)
System\Windows\Controls\DocumentViewer.cs (1)
46
public class DocumentViewer :
DocumentViewerBase
System\Windows\Controls\SinglePageViewer.cs (1)
37
public class FlowDocumentPageViewer :
DocumentViewerBase
, IJournalState
82 references to DocumentViewerBase
PresentationFramework (82)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
192
DocumentViewerBase
documentViewerBase = parent as
DocumentViewerBase
;
518
DocumentViewerBase
viewer = PathNode.GetParent(idp as DependencyObject) as
DocumentViewerBase
;
MS\Internal\Documents\MultiPageTextView.cs (2)
40
internal MultiPageTextView(
DocumentViewerBase
viewer, UIElement renderScope, ITextContainer textContainer)
1545
private readonly
DocumentViewerBase
_viewer;
System\Windows\Annotations\AnnotationHelper.cs (10)
196
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
202
viewer = GetFdrHost(fdr) as
DocumentViewerBase
;
466
internal static DocumentPageView FindView(
DocumentViewerBase
viewer, int pageNb)
547
private static bool AreAllPagesVisible(
DocumentViewerBase
viewer, int startPage, int endPage)
580
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
586
viewer = GetFdrHost(fdr) as
DocumentViewerBase
;
1102
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
System\Windows\Annotations\AnnotationService.cs (22)
59
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
61
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
63
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
65
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
67
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
69
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
102
public AnnotationService(
DocumentViewerBase
viewer)
195
DocumentViewerBase
viewer = _root as
DocumentViewerBase
;
213
_locatorManager.RegisterSelectionProcessor(new TextViewSelectionProcessor(), typeof(
DocumentViewerBase
));
260
DocumentViewerBase
viewer;
299
public static AnnotationService GetService(
DocumentViewerBase
viewer)
765
DocumentViewerBase
documentViewerBase;
1082
static private void GetViewerAndDocument(DependencyObject root, out
DocumentViewerBase
documentViewerBase, out IDocumentPaginatorSource document)
1084
documentViewerBase = root as
DocumentViewerBase
;
1098
documentViewerBase = AnnotationHelper.GetFdrHost(reader) as
DocumentViewerBase
;
1560
if (viewer is
DocumentViewerBase
)
1561
isFlow = ((
DocumentViewerBase
)viewer).Document is FlowDocument;
1660
private void RegisterOnDocumentViewer(
DocumentViewerBase
viewer)
1676
private void UnregisterOnDocumentViewer(
DocumentViewerBase
viewer)
1697
DocumentViewerBase
viewer = sender as
DocumentViewerBase
;
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (2)
24
public DocumentViewerBaseAutomationPeer(
DocumentViewerBase
owner)
113
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)
66
EventManager.RegisterClassHandler(typeof(
DocumentViewerBase
), RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(HandleRequestBringIntoView));
69
TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(
DocumentViewerBase
), new FrameworkPropertyMetadata(true));
250
typeof(
DocumentViewerBase
),
262
typeof(
DocumentViewerBase
),
278
typeof(
DocumentViewerBase
),
294
typeof(
DocumentViewerBase
),
310
typeof(
DocumentViewerBase
),
330
typeof(
DocumentViewerBase
),
1406
service.LocatorManager.RegisterSelectionProcessor(new TextViewSelectionProcessor(), typeof(
DocumentViewerBase
));
1464
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.PreviousPage,
1468
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.NextPage,
1472
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.FirstPage,
1476
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.LastPage,
1480
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.GoToPage,
1484
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), ApplicationCommands.Print,
1488
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), ApplicationCommands.CancelPrint,
1492
TextEditor.RegisterCommandHandlers(typeof(
DocumentViewerBase
), /*acceptsRichContent:*/true, /*readOnly:*/!IsEditingEnabled, /*registerEventListeners*/true);
1502
DocumentViewerBase
dv = target as
DocumentViewerBase
;
1532
DocumentViewerBase
dv = target as
DocumentViewerBase
;
1605
if (sender != null && sender is
DocumentViewerBase
)
1607
((
DocumentViewerBase
)sender).HandleRequestBringIntoView(args);
1616
Invariant.Assert(d != null && d is
DocumentViewerBase
);
1617
((
DocumentViewerBase
) d).DocumentChanged((IDocumentPaginatorSource) e.OldValue, (IDocumentPaginatorSource) e.NewValue);
1703
internal BringIntoViewState(
DocumentViewerBase
source, ContentPosition contentPosition, DependencyObject targetObject, Rect targetRect)
1710
internal
DocumentViewerBase
Source;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
263
case 167: t = () => typeof(
DocumentViewerBase
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
2397
Type type = typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
);
2398
DependencyProperty dp = System.Windows.Controls.Primitives.
DocumentViewerBase
.DocumentProperty;
2400
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3754
typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
),
System\Windows\Markup\KnownTypes.cs (2)
1762
return System.Windows.Controls.Primitives.
DocumentViewerBase
.DocumentProperty;
5721
case KnownElements.DocumentViewerBase: t = typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
); break;