1 write to _documentPaginator
PresentationFramework (1)
src\Framework\MS\Internal\Documents\PageCache.cs (1)
98
_documentPaginator
= value;
26 references to _documentPaginator
PresentationFramework (26)
src\Framework\MS\Internal\Documents\PageCache.cs (26)
76
if (
_documentPaginator
!= value)
86
if (
_documentPaginator
!= null)
88
_documentPaginator
.PagesChanged -= new PagesChangedEventHandler(OnPagesChanged);
89
_documentPaginator
.GetPageCompleted -= new GetPageCompletedEventHandler(OnGetPageCompleted);
90
_documentPaginator
.PaginationProgress -= new PaginationProgressEventHandler(OnPaginationProgress);
91
_documentPaginator
.PaginationCompleted -= new EventHandler(OnPaginationCompleted);
94
_documentPaginator
.IsBackgroundPaginationEnabled = _originalIsBackgroundPaginationEnabled;
104
if (
_documentPaginator
!= null)
106
_documentPaginator
.PagesChanged += new PagesChangedEventHandler(OnPagesChanged);
107
_documentPaginator
.GetPageCompleted += new GetPageCompletedEventHandler(OnGetPageCompleted);
108
_documentPaginator
.PaginationProgress += new PaginationProgressEventHandler(OnPaginationProgress);
109
_documentPaginator
.PaginationCompleted += new EventHandler(OnPaginationCompleted);
112
_documentPaginator
.PageSize = _defaultPageSize;
115
_originalIsBackgroundPaginationEnabled =
_documentPaginator
.IsBackgroundPaginationEnabled;
119
_documentPaginator
.IsBackgroundPaginationEnabled = true;
128
if (
_documentPaginator
.Source is DependencyObject)
130
FlowDirection flowDirection = (FlowDirection)((DependencyObject)
_documentPaginator
.Source).GetValue(FrameworkElement.FlowDirectionProperty);
145
if (
_documentPaginator
!= null )
147
if (
_documentPaginator
.PageCount > 0)
149
OnPaginationProgress(
_documentPaginator
,
150
new PaginationProgressEventArgs(0,
_documentPaginator
.PageCount));
153
if (
_documentPaginator
.IsPageCountValid )
155
OnPaginationCompleted(
_documentPaginator
, EventArgs.Empty);
163
return
_documentPaginator
;
429
int pageCount =
_documentPaginator
!= null ?
_documentPaginator
.PageCount : 0;