1 write to _document
PresentationFramework (1)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1303_document = newDocument;
39 references to _document
PresentationFramework (39)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (39)
157((_document != null) && (pageNumber - 1 == this.PageCount) && !_document.DocumentPaginator.IsPageCountValid); 175get { return _document; } 375FlowDocument flowDocument = _document as FlowDocument; 566if (_document != null) 581if( _document is FixedDocumentSequence ) 583docWriter.WriteAsync(_document as FixedDocumentSequence); 585else if( _document is FixedDocument ) 587docWriter.WriteAsync(_document as FixedDocument); 591docWriter.WriteAsync(_document.DocumentPaginator); 621_pageViews[index].DocumentPaginator = (_document != null) ? _document.DocumentPaginator : null; 653if (this.HasLogicalChildren && _document != null) 655return new SingleChildEnumerator(_document); 840_pageViews[index].DocumentPaginator = (_document != null) ? _document.DocumentPaginator : null; 1094if (_document != null && sender == _document.DocumentPaginator && e != null) 1121if (args != null && args.TargetObject != null && _document is DependencyObject) 1127parent = _document as DependencyObject; 1128if (args.TargetObject == _document) 1175documentPaginator = _document.DocumentPaginator as DynamicDocumentPaginator; 1216SetValue(PageCountPropertyKey, (_document != null) ? _document.DocumentPaginator.PageCount : 0); 1225if (_document != null && _pageViews.Count > 0) 1243if (_document != null) 1245canGoToNextPage = (MasterPageNumber < _document.DocumentPaginator.PageCount) || !_document.DocumentPaginator.IsPageCountValid; 1331doDocument = _document as DependencyObject; 1344if (_document != null) 1349AddLogicalChild(_document); 1352dynamicDocumentPaginator = _document.DocumentPaginator as DynamicDocumentPaginator; 1363DependencyObject doc = _document as DependencyObject; 1364if (_document is FixedDocument || _document is FixedDocumentSequence) 1380else if ((flowDocument = _document as FlowDocument) != null) 1626if (_document != null) 1628if (_document is IServiceProvider && CheckFlags(Flags.IsSelectionEnabled)) 1630textContainer = ((IServiceProvider)_document).GetService(typeof(ITextContainer)) as ITextContainer;