1 write to _contentHost
PresentationFramework (1)
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
126
_contentHost
= GetTemplateChild(_contentHostTemplateName) as ScrollViewer;
40 references to _contentHost
PresentationFramework (40)
System\Windows\Controls\FlowDocumentScrollViewer.cs (40)
117
if (
_contentHost
!= null)
119
BindingOperations.ClearBinding(
_contentHost
, HorizontalScrollBarVisibilityProperty);
120
BindingOperations.ClearBinding(
_contentHost
, VerticalScrollBarVisibilityProperty);
121
_contentHost
.ScrollChanged -= new ScrollChangedEventHandler(OnScrollChanged);
124
_contentHost
.Content = null;
127
if (
_contentHost
!= null)
129
if (
_contentHost
.Content != null)
133
_contentHost
.ScrollChanged += new ScrollChangedEventHandler(OnScrollChanged);
134
CreateTwoWayBinding(
_contentHost
, HorizontalScrollBarVisibilityProperty, "HorizontalScrollBarVisibility");
135
CreateTwoWayBinding(
_contentHost
, VerticalScrollBarVisibilityProperty, "VerticalScrollBarVisibility");
138
_contentHost
.Focusable = false;
141
_contentHost
.Content = new FlowDocumentView();
577
if (
_contentHost
!= null)
579
CommandManager.AddPreviewCanExecuteHandler(
_contentHost
, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
704
if (
_contentHost
!= null)
723
_contentHost
.LineDown();
727
_contentHost
.LineUp();
882
internal ScrollViewer ScrollViewer { get { return
_contentHost
; } }
1069
if (
_contentHost
!= null)
1071
CommandManager.RemovePreviewCanExecuteHandler(
_contentHost
, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
1113
if (
_contentHost
!= null)
1115
_contentHost
.ScrollToHome();
1472
if (viewer.
_contentHost
!= null)
1474
viewer.
_contentHost
.LineDown();
1479
if (viewer.
_contentHost
!= null)
1481
viewer.
_contentHost
.LineUp();
1486
if (viewer.
_contentHost
!= null)
1488
viewer.
_contentHost
.LineLeft();
1493
if (viewer.
_contentHost
!= null)
1495
viewer.
_contentHost
.LineRight();
1500
if (viewer.
_contentHost
!= null)
1502
viewer.
_contentHost
.PageDown();
1507
if (viewer.
_contentHost
!= null)
1509
viewer.
_contentHost
.PageUp();
1514
if (viewer.
_contentHost
!= null)
1516
viewer.
_contentHost
.ScrollToHome();
1521
if (viewer.
_contentHost
!= null)
1523
viewer.
_contentHost
.ScrollToEnd();
1803
get { return (
_contentHost
!= null) ?
_contentHost
.Content as FlowDocumentView : null; }