68 references to ScrollViewer
PresentationFramework (68)
src\Framework\System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
59
if (owner.
ScrollViewer
!= null)
61
returnValue = owner.
ScrollViewer
.CreateAutomationPeer();
src\Framework\System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
60
if (owner.
ScrollViewer
!= null)
62
returnValue = owner.
ScrollViewer
.CreateAutomationPeer();
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (52)
194
if (this.
ScrollViewer
!= null)
197
this.
ScrollViewer
.LineLeft();
206
if (this.
ScrollViewer
!= null)
209
this.
ScrollViewer
.LineRight();
218
if (this.
ScrollViewer
!= null)
221
this.
ScrollViewer
.PageLeft();
230
if (this.
ScrollViewer
!= null)
233
this.
ScrollViewer
.PageRight();
260
if (this.
ScrollViewer
!= null)
263
this.
ScrollViewer
.PageUp();
272
if (this.
ScrollViewer
!= null)
275
this.
ScrollViewer
.PageDown();
284
if (this.
ScrollViewer
!= null)
287
this.
ScrollViewer
.ScrollToHome();
296
if (this.
ScrollViewer
!= null)
299
this.
ScrollViewer
.ScrollToEnd();
313
if (this.
ScrollViewer
!= null)
316
this.
ScrollViewer
.ScrollToHorizontalOffset(offset);
330
if (this.
ScrollViewer
!= null)
333
this.
ScrollViewer
.ScrollToVerticalOffset(offset);
592
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ExtentWidth : 0.0;
603
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ExtentHeight : 0.0;
614
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ViewportWidth : 0.0;
625
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ViewportHeight : 0.0;
639
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.HorizontalOffset : 0.0;
652
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.VerticalOffset : 0.0;
1077
if (this.
ScrollViewer
!= null)
1080
if ((e.Delta > 0 && VerticalOffset != 0) /* scrolling up */ || (e.Delta < 0 && VerticalOffset < this.
ScrollViewer
.ScrollableHeight) /* scrolling down */ )
1650
if (this.
ScrollViewer
!= null)
1652
this.
ScrollViewer
.ScrollChanged += new ScrollChangedEventHandler(OnScrollChanged);
1655
SetValue(TextEditor.PageHeightProperty, this.
ScrollViewer
.ViewportHeight);
1658
this.
ScrollViewer
.Focusable = false;
1661
this.
ScrollViewer
.HandlesMouseWheelScrolling = false;
1663
if (this.
ScrollViewer
.Background == null)
1666
this.
ScrollViewer
.Background = Brushes.Transparent;
1682
if (this.
ScrollViewer
!= null)
1684
this.
ScrollViewer
.LineUp();
1691
if (this.
ScrollViewer
!= null)
1693
this.
ScrollViewer
.LineDown();
1902
if (this.
ScrollViewer
!= null)
1904
this.
ScrollViewer
.ScrollChanged -= new ScrollChangedEventHandler(OnScrollChanged);
1927
if (this.
ScrollViewer
!= null)
1929
this.
ScrollViewer
.CanContentScroll = true;
2160
if (textBox != null && textBox.
ScrollViewer
!= null)
2165
textBox.
ScrollViewer
.ClearValue(e.Property);
2169
textBox.
ScrollViewer
.SetValue(e.Property, value);
src\Framework\System\Windows\Controls\TextBox.cs (12)
1092
if (this.
ScrollViewer
== null)
1171
if (this.
ScrollViewer
!= null)
1173
ScrollViewer
.ScrollToVerticalOffset(VerticalOffset - GetLineHeight());
1182
if (this.
ScrollViewer
!= null)
1184
ScrollViewer
.ScrollToVerticalOffset(VerticalOffset + GetLineHeight());
1806
this.
ScrollViewer
.ClearValue(MinHeightProperty);
1807
this.
ScrollViewer
.ClearValue(MaxHeightProperty);
1811
double chrome = this.
ScrollViewer
.ActualHeight - ViewportHeight;
1815
if (MinLines > 1 && this.
ScrollViewer
.MinHeight != value)
1817
this.
ScrollViewer
.MinHeight = value;
1822
if (MaxLines < Int32.MaxValue && this.
ScrollViewer
.MaxHeight != value)
1824
this.
ScrollViewer
.MaxHeight = value;