1 write to _document
PresentationFramework (1)
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1330
_document
= newDocument;
39 references to _document
PresentationFramework (39)
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (39)
176
((
_document
!= null) && (pageNumber - 1 == this.PageCount) && !
_document
.DocumentPaginator.IsPageCountValid);
194
get { return
_document
; }
400
FlowDocument flowDocument =
_document
as FlowDocument;
594
if (
_document
!= null)
609
if(
_document
is FixedDocumentSequence )
611
docWriter.WriteAsync(
_document
as FixedDocumentSequence);
613
else if(
_document
is FixedDocument )
615
docWriter.WriteAsync(
_document
as FixedDocument);
619
docWriter.WriteAsync(
_document
.DocumentPaginator);
649
_pageViews[index].DocumentPaginator = (
_document
!= null) ?
_document
.DocumentPaginator : null;
681
if (this.HasLogicalChildren &&
_document
!= null)
683
return new SingleChildEnumerator(
_document
);
868
_pageViews[index].DocumentPaginator = (
_document
!= null) ?
_document
.DocumentPaginator : null;
1120
if (
_document
!= null && sender ==
_document
.DocumentPaginator && e != null)
1147
if (args != null && args.TargetObject != null &&
_document
is DependencyObject)
1153
parent =
_document
as DependencyObject;
1154
if (args.TargetObject ==
_document
)
1202
documentPaginator =
_document
.DocumentPaginator as DynamicDocumentPaginator;
1243
SetValue(PageCountPropertyKey, (
_document
!= null) ?
_document
.DocumentPaginator.PageCount : 0);
1252
if (
_document
!= null && _pageViews.Count > 0)
1270
if (
_document
!= null)
1272
canGoToNextPage = (MasterPageNumber <
_document
.DocumentPaginator.PageCount) || !
_document
.DocumentPaginator.IsPageCountValid;
1358
doDocument =
_document
as DependencyObject;
1371
if (
_document
!= null)
1376
AddLogicalChild(
_document
);
1379
dynamicDocumentPaginator =
_document
.DocumentPaginator as DynamicDocumentPaginator;
1390
DependencyObject doc =
_document
as DependencyObject;
1391
if (
_document
is FixedDocument ||
_document
is FixedDocumentSequence)
1407
else if ((flowDocument =
_document
as FlowDocument) != null)
1655
if (
_document
!= null)
1657
if (
_document
is IServiceProvider && CheckFlags(Flags.IsSelectionEnabled))
1659
textContainer = ((IServiceProvider)
_document
).GetService(typeof(ITextContainer)) as ITextContainer;