2 types derived from DocumentViewerBase
PresentationFramework (2)
System\Windows\Controls\DocumentViewer.cs (1)
33
public class DocumentViewer :
DocumentViewerBase
System\Windows\Controls\SinglePageViewer.cs (1)
33
public class FlowDocumentPageViewer :
DocumentViewerBase
, IJournalState
82 references to DocumentViewerBase
PresentationFramework (82)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
182
DocumentViewerBase
documentViewerBase = parent as
DocumentViewerBase
;
508
DocumentViewerBase
viewer = PathNode.GetParent(idp as DependencyObject) as
DocumentViewerBase
;
MS\Internal\Documents\MultiPageTextView.cs (2)
37
internal MultiPageTextView(
DocumentViewerBase
viewer, UIElement renderScope, ITextContainer textContainer)
1542
private readonly
DocumentViewerBase
_viewer;
System\Windows\Annotations\AnnotationHelper.cs (10)
181
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
187
viewer = GetFdrHost(fdr) as
DocumentViewerBase
;
451
internal static DocumentPageView FindView(
DocumentViewerBase
viewer, int pageNb)
532
private static bool AreAllPagesVisible(
DocumentViewerBase
viewer, int startPage, int endPage)
565
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
571
viewer = GetFdrHost(fdr) as
DocumentViewerBase
;
1087
DocumentViewerBase
viewer = service.Root as
DocumentViewerBase
;
System\Windows\Annotations\AnnotationService.cs (22)
45
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
47
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
49
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
51
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
53
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
55
CommandManager.RegisterClassCommandBinding(typeof(
DocumentViewerBase
), new CommandBinding(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
88
public AnnotationService(
DocumentViewerBase
viewer)
181
DocumentViewerBase
viewer = _root as
DocumentViewerBase
;
199
_locatorManager.RegisterSelectionProcessor(new TextViewSelectionProcessor(), typeof(
DocumentViewerBase
));
246
DocumentViewerBase
viewer;
285
public static AnnotationService GetService(
DocumentViewerBase
viewer)
747
DocumentViewerBase
documentViewerBase;
1064
private static void GetViewerAndDocument(DependencyObject root, out
DocumentViewerBase
documentViewerBase, out IDocumentPaginatorSource document)
1066
documentViewerBase = root as
DocumentViewerBase
;
1080
documentViewerBase = AnnotationHelper.GetFdrHost(reader) as
DocumentViewerBase
;
1542
if (viewer is
DocumentViewerBase
)
1543
isFlow = ((
DocumentViewerBase
)viewer).Document is FlowDocument;
1642
private void RegisterOnDocumentViewer(
DocumentViewerBase
viewer)
1658
private void UnregisterOnDocumentViewer(
DocumentViewerBase
viewer)
1679
DocumentViewerBase
viewer = sender as
DocumentViewerBase
;
System\Windows\Automation\Peers\DocumentViewerBaseAutomationPeer.cs (2)
22
public DocumentViewerBaseAutomationPeer(
DocumentViewerBase
owner)
108
IDocumentPaginatorSource document = ((
DocumentViewerBase
)Owner).Document;
System\Windows\Controls\Primitives\DocumentPageView.cs (8)
885
DocumentViewerBase
hostViewer;
887
if (
DocumentViewerBase
.GetIsMasterPage(this))
902
private
DocumentViewerBase
GetHostViewer()
904
DocumentViewerBase
hostViewer = null;
911
if (this.TemplatedParent is
DocumentViewerBase
)
913
hostViewer = (
DocumentViewerBase
)this.TemplatedParent;
921
if (visualParent is
DocumentViewerBase
)
923
hostViewer = (
DocumentViewerBase
)visualParent;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (27)
49
EventManager.RegisterClassHandler(typeof(
DocumentViewerBase
), RequestBringIntoViewEvent, new RequestBringIntoViewEventHandler(HandleRequestBringIntoView));
52
TextBoxBase.AutoWordSelectionProperty.OverrideMetadata(typeof(
DocumentViewerBase
), new FrameworkPropertyMetadata(true));
233
typeof(
DocumentViewerBase
),
245
typeof(
DocumentViewerBase
),
261
typeof(
DocumentViewerBase
),
277
typeof(
DocumentViewerBase
),
293
typeof(
DocumentViewerBase
),
313
typeof(
DocumentViewerBase
),
1375
service.LocatorManager.RegisterSelectionProcessor(new TextViewSelectionProcessor(), typeof(
DocumentViewerBase
));
1430
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.PreviousPage,
1434
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.NextPage,
1438
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.FirstPage,
1442
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.LastPage,
1446
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), NavigationCommands.GoToPage,
1450
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), ApplicationCommands.Print,
1454
CommandHelpers.RegisterCommandHandler(typeof(
DocumentViewerBase
), ApplicationCommands.CancelPrint,
1458
TextEditor.RegisterCommandHandlers(typeof(
DocumentViewerBase
), /*acceptsRichContent:*/true, /*readOnly:*/!IsEditingEnabled, /*registerEventListeners*/true);
1468
DocumentViewerBase
dv = target as
DocumentViewerBase
;
1498
DocumentViewerBase
dv = target as
DocumentViewerBase
;
1569
if (sender != null && sender is
DocumentViewerBase
)
1571
((
DocumentViewerBase
)sender).HandleRequestBringIntoView(args);
1580
Invariant.Assert(d != null && d is
DocumentViewerBase
);
1581
((
DocumentViewerBase
) d).DocumentChanged((IDocumentPaginatorSource) e.OldValue, (IDocumentPaginatorSource) e.NewValue);
1667
internal BringIntoViewState(
DocumentViewerBase
source, ContentPosition contentPosition, DependencyObject targetObject, Rect targetRect)
1674
internal
DocumentViewerBase
Source;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
260
case 167: t = () => typeof(
DocumentViewerBase
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
2458
Type type = typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
);
2459
DependencyProperty dp = System.Windows.Controls.Primitives.
DocumentViewerBase
.DocumentProperty;
2461
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4029
typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
),
System\Windows\Markup\KnownTypes.cs (2)
1755
return System.Windows.Controls.Primitives.
DocumentViewerBase
.DocumentProperty;
5714
case KnownElements.DocumentViewerBase: t = typeof(System.Windows.Controls.Primitives.
DocumentViewerBase
); break;