1 write to _contentHost
PresentationFramework (1)
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
123
_contentHost
= GetTemplateChild(_contentHostTemplateName) as ScrollViewer;
40 references to _contentHost
PresentationFramework (40)
System\Windows\Controls\FlowDocumentScrollViewer.cs (40)
114
if (
_contentHost
!= null)
116
BindingOperations.ClearBinding(
_contentHost
, HorizontalScrollBarVisibilityProperty);
117
BindingOperations.ClearBinding(
_contentHost
, VerticalScrollBarVisibilityProperty);
118
_contentHost
.ScrollChanged -= new ScrollChangedEventHandler(OnScrollChanged);
121
_contentHost
.Content = null;
124
if (
_contentHost
!= null)
126
if (
_contentHost
.Content != null)
130
_contentHost
.ScrollChanged += new ScrollChangedEventHandler(OnScrollChanged);
131
CreateTwoWayBinding(
_contentHost
, HorizontalScrollBarVisibilityProperty, "HorizontalScrollBarVisibility");
132
CreateTwoWayBinding(
_contentHost
, VerticalScrollBarVisibilityProperty, "VerticalScrollBarVisibility");
135
_contentHost
.Focusable = false;
138
_contentHost
.Content = new FlowDocumentView();
574
if (
_contentHost
!= null)
576
CommandManager.AddPreviewCanExecuteHandler(
_contentHost
, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
701
if (
_contentHost
!= null)
720
_contentHost
.LineDown();
724
_contentHost
.LineUp();
879
internal ScrollViewer ScrollViewer { get { return
_contentHost
; } }
1066
if (
_contentHost
!= null)
1068
CommandManager.RemovePreviewCanExecuteHandler(
_contentHost
, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
1110
if (
_contentHost
!= null)
1112
_contentHost
.ScrollToHome();
1469
if (viewer.
_contentHost
!= null)
1471
viewer.
_contentHost
.LineDown();
1476
if (viewer.
_contentHost
!= null)
1478
viewer.
_contentHost
.LineUp();
1483
if (viewer.
_contentHost
!= null)
1485
viewer.
_contentHost
.LineLeft();
1490
if (viewer.
_contentHost
!= null)
1492
viewer.
_contentHost
.LineRight();
1497
if (viewer.
_contentHost
!= null)
1499
viewer.
_contentHost
.PageDown();
1504
if (viewer.
_contentHost
!= null)
1506
viewer.
_contentHost
.PageUp();
1511
if (viewer.
_contentHost
!= null)
1513
viewer.
_contentHost
.ScrollToHome();
1518
if (viewer.
_contentHost
!= null)
1520
viewer.
_contentHost
.ScrollToEnd();
1800
get { return (
_contentHost
!= null) ?
_contentHost
.Content as FlowDocumentView : null; }