1 write to _document
PresentationFramework (1)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1318
_document
= newDocument;
39 references to _document
PresentationFramework (39)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (39)
173
((
_document
!= null) && (pageNumber - 1 == this.PageCount) && !
_document
.DocumentPaginator.IsPageCountValid);
191
get { return
_document
; }
391
FlowDocument flowDocument =
_document
as FlowDocument;
582
if (
_document
!= null)
597
if(
_document
is FixedDocumentSequence )
599
docWriter.WriteAsync(
_document
as FixedDocumentSequence);
601
else if(
_document
is FixedDocument )
603
docWriter.WriteAsync(
_document
as FixedDocument);
607
docWriter.WriteAsync(
_document
.DocumentPaginator);
637
_pageViews[index].DocumentPaginator = (
_document
!= null) ?
_document
.DocumentPaginator : null;
669
if (this.HasLogicalChildren &&
_document
!= null)
671
return new SingleChildEnumerator(
_document
);
856
_pageViews[index].DocumentPaginator = (
_document
!= null) ?
_document
.DocumentPaginator : null;
1108
if (
_document
!= null && sender ==
_document
.DocumentPaginator && e != null)
1135
if (args != null && args.TargetObject != null &&
_document
is DependencyObject)
1141
parent =
_document
as DependencyObject;
1142
if (args.TargetObject ==
_document
)
1190
documentPaginator =
_document
.DocumentPaginator as DynamicDocumentPaginator;
1231
SetValue(PageCountPropertyKey, (
_document
!= null) ?
_document
.DocumentPaginator.PageCount : 0);
1240
if (
_document
!= null && _pageViews.Count > 0)
1258
if (
_document
!= null)
1260
canGoToNextPage = (MasterPageNumber <
_document
.DocumentPaginator.PageCount) || !
_document
.DocumentPaginator.IsPageCountValid;
1346
doDocument =
_document
as DependencyObject;
1359
if (
_document
!= null)
1364
AddLogicalChild(
_document
);
1367
dynamicDocumentPaginator =
_document
.DocumentPaginator as DynamicDocumentPaginator;
1378
DependencyObject doc =
_document
as DependencyObject;
1379
if (
_document
is FixedDocument ||
_document
is FixedDocumentSequence)
1395
else if ((flowDocument =
_document
as FlowDocument) != null)
1643
if (
_document
!= null)
1645
if (
_document
is IServiceProvider && CheckFlags(Flags.IsSelectionEnabled))
1647
textContainer = ((IServiceProvider)
_document
).GetService(typeof(ITextContainer)) as ITextContainer;