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