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