68 references to ScrollViewer
PresentationFramework (68)
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
52
if (owner.
ScrollViewer
!= null)
54
returnValue = owner.
ScrollViewer
.CreateAutomationPeer();
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
53
if (owner.
ScrollViewer
!= null)
55
returnValue = owner.
ScrollViewer
.CreateAutomationPeer();
System\Windows\Controls\Primitives\TextBoxBase.cs (52)
164
if (this.
ScrollViewer
!= null)
167
this.
ScrollViewer
.LineLeft();
176
if (this.
ScrollViewer
!= null)
179
this.
ScrollViewer
.LineRight();
188
if (this.
ScrollViewer
!= null)
191
this.
ScrollViewer
.PageLeft();
200
if (this.
ScrollViewer
!= null)
203
this.
ScrollViewer
.PageRight();
230
if (this.
ScrollViewer
!= null)
233
this.
ScrollViewer
.PageUp();
242
if (this.
ScrollViewer
!= null)
245
this.
ScrollViewer
.PageDown();
254
if (this.
ScrollViewer
!= null)
257
this.
ScrollViewer
.ScrollToHome();
266
if (this.
ScrollViewer
!= null)
269
this.
ScrollViewer
.ScrollToEnd();
283
if (this.
ScrollViewer
!= null)
286
this.
ScrollViewer
.ScrollToHorizontalOffset(offset);
300
if (this.
ScrollViewer
!= null)
303
this.
ScrollViewer
.ScrollToVerticalOffset(offset);
562
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ExtentWidth : 0.0;
573
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ExtentHeight : 0.0;
584
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ViewportWidth : 0.0;
595
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ViewportHeight : 0.0;
609
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.HorizontalOffset : 0.0;
622
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.VerticalOffset : 0.0;
1044
if (this.
ScrollViewer
!= null)
1047
if ((e.Delta > 0 && VerticalOffset != 0) /* scrolling up */ || (e.Delta < 0 && VerticalOffset < this.
ScrollViewer
.ScrollableHeight) /* scrolling down */ )
1614
if (this.
ScrollViewer
!= null)
1616
this.
ScrollViewer
.ScrollChanged += new ScrollChangedEventHandler(OnScrollChanged);
1619
SetValue(TextEditor.PageHeightProperty, this.
ScrollViewer
.ViewportHeight);
1622
this.
ScrollViewer
.Focusable = false;
1625
this.
ScrollViewer
.HandlesMouseWheelScrolling = false;
1627
if (this.
ScrollViewer
.Background == null)
1630
this.
ScrollViewer
.Background = Brushes.Transparent;
1646
if (this.
ScrollViewer
!= null)
1648
this.
ScrollViewer
.LineUp();
1655
if (this.
ScrollViewer
!= null)
1657
this.
ScrollViewer
.LineDown();
1864
if (this.
ScrollViewer
!= null)
1866
this.
ScrollViewer
.ScrollChanged -= new ScrollChangedEventHandler(OnScrollChanged);
1889
if (this.
ScrollViewer
!= null)
1891
this.
ScrollViewer
.CanContentScroll = true;
2119
if (textBox != null && textBox.
ScrollViewer
!= null)
2124
textBox.
ScrollViewer
.ClearValue(e.Property);
2128
textBox.
ScrollViewer
.SetValue(e.Property, value);
System\Windows\Controls\TextBox.cs (12)
1096
if (this.
ScrollViewer
== null)
1175
if (this.
ScrollViewer
!= null)
1177
ScrollViewer
.ScrollToVerticalOffset(VerticalOffset - GetLineHeight());
1186
if (this.
ScrollViewer
!= null)
1188
ScrollViewer
.ScrollToVerticalOffset(VerticalOffset + GetLineHeight());
1808
this.
ScrollViewer
.ClearValue(MinHeightProperty);
1809
this.
ScrollViewer
.ClearValue(MaxHeightProperty);
1813
double chrome = this.
ScrollViewer
.ActualHeight - ViewportHeight;
1817
if (MinLines > 1 && this.
ScrollViewer
.MinHeight != value)
1819
this.
ScrollViewer
.MinHeight = value;
1824
if (MaxLines < Int32.MaxValue && this.
ScrollViewer
.MaxHeight != value)
1826
this.
ScrollViewer
.MaxHeight = value;