1 write to _contentHost
PresentationFramework (1)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
127
_contentHost
= GetTemplateChild(_contentHostTemplateName) as ScrollViewer;
40 references to _contentHost
PresentationFramework (40)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (40)
118
if (
_contentHost
!= null)
120
BindingOperations.ClearBinding(
_contentHost
, HorizontalScrollBarVisibilityProperty);
121
BindingOperations.ClearBinding(
_contentHost
, VerticalScrollBarVisibilityProperty);
122
_contentHost
.ScrollChanged -= new ScrollChangedEventHandler(OnScrollChanged);
125
_contentHost
.Content = null;
128
if (
_contentHost
!= null)
130
if (
_contentHost
.Content != null)
134
_contentHost
.ScrollChanged += new ScrollChangedEventHandler(OnScrollChanged);
135
CreateTwoWayBinding(
_contentHost
, HorizontalScrollBarVisibilityProperty, "HorizontalScrollBarVisibility");
136
CreateTwoWayBinding(
_contentHost
, VerticalScrollBarVisibilityProperty, "VerticalScrollBarVisibility");
139
_contentHost
.Focusable = false;
142
_contentHost
.Content = new FlowDocumentView();
578
if (
_contentHost
!= null)
580
CommandManager.AddPreviewCanExecuteHandler(
_contentHost
, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
710
if (
_contentHost
!= null)
729
_contentHost
.LineDown();
733
_contentHost
.LineUp();
888
internal ScrollViewer ScrollViewer { get { return
_contentHost
; } }
1077
if (
_contentHost
!= null)
1079
CommandManager.RemovePreviewCanExecuteHandler(
_contentHost
, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
1121
if (
_contentHost
!= null)
1123
_contentHost
.ScrollToHome();
1480
if (viewer.
_contentHost
!= null)
1482
viewer.
_contentHost
.LineDown();
1487
if (viewer.
_contentHost
!= null)
1489
viewer.
_contentHost
.LineUp();
1494
if (viewer.
_contentHost
!= null)
1496
viewer.
_contentHost
.LineLeft();
1501
if (viewer.
_contentHost
!= null)
1503
viewer.
_contentHost
.LineRight();
1508
if (viewer.
_contentHost
!= null)
1510
viewer.
_contentHost
.PageDown();
1515
if (viewer.
_contentHost
!= null)
1517
viewer.
_contentHost
.PageUp();
1522
if (viewer.
_contentHost
!= null)
1524
viewer.
_contentHost
.ScrollToHome();
1529
if (viewer.
_contentHost
!= null)
1531
viewer.
_contentHost
.ScrollToEnd();
1811
get { return (
_contentHost
!= null) ?
_contentHost
.Content as FlowDocumentView : null; }