1 write to _document
PresentationFramework (1)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1313_document = newDocument;
39 references to _document
PresentationFramework (39)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (39)
168((_document != null) && (pageNumber - 1 == this.PageCount) && !_document.DocumentPaginator.IsPageCountValid); 186get { return _document; } 386FlowDocument flowDocument = _document as FlowDocument; 577if (_document != null) 592if( _document is FixedDocumentSequence ) 594docWriter.WriteAsync(_document as FixedDocumentSequence); 596else if( _document is FixedDocument ) 598docWriter.WriteAsync(_document as FixedDocument); 602docWriter.WriteAsync(_document.DocumentPaginator); 632_pageViews[index].DocumentPaginator = (_document != null) ? _document.DocumentPaginator : null; 664if (this.HasLogicalChildren && _document != null) 666return new SingleChildEnumerator(_document); 851_pageViews[index].DocumentPaginator = (_document != null) ? _document.DocumentPaginator : null; 1103if (_document != null && sender == _document.DocumentPaginator && e != null) 1130if (args != null && args.TargetObject != null && _document is DependencyObject) 1136parent = _document as DependencyObject; 1137if (args.TargetObject == _document) 1185documentPaginator = _document.DocumentPaginator as DynamicDocumentPaginator; 1226SetValue(PageCountPropertyKey, (_document != null) ? _document.DocumentPaginator.PageCount : 0); 1235if (_document != null && _pageViews.Count > 0) 1253if (_document != null) 1255canGoToNextPage = (MasterPageNumber < _document.DocumentPaginator.PageCount) || !_document.DocumentPaginator.IsPageCountValid; 1341doDocument = _document as DependencyObject; 1354if (_document != null) 1359AddLogicalChild(_document); 1362dynamicDocumentPaginator = _document.DocumentPaginator as DynamicDocumentPaginator; 1373DependencyObject doc = _document as DependencyObject; 1374if (_document is FixedDocument || _document is FixedDocumentSequence) 1390else if ((flowDocument = _document as FlowDocument) != null) 1638if (_document != null) 1640if (_document is IServiceProvider && CheckFlags(Flags.IsSelectionEnabled)) 1642textContainer = ((IServiceProvider)_document).GetService(typeof(ITextContainer)) as ITextContainer;