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