68 references to ScrollViewer
PresentationFramework (68)
System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
63
if (owner.
ScrollViewer
!= null)
65
returnValue = owner.
ScrollViewer
.CreateAutomationPeer();
System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
64
if (owner.
ScrollViewer
!= null)
66
returnValue = owner.
ScrollViewer
.CreateAutomationPeer();
System\Windows\Controls\Primitives\TextBoxBase.cs (52)
171
if (this.
ScrollViewer
!= null)
174
this.
ScrollViewer
.LineLeft();
183
if (this.
ScrollViewer
!= null)
186
this.
ScrollViewer
.LineRight();
195
if (this.
ScrollViewer
!= null)
198
this.
ScrollViewer
.PageLeft();
207
if (this.
ScrollViewer
!= null)
210
this.
ScrollViewer
.PageRight();
237
if (this.
ScrollViewer
!= null)
240
this.
ScrollViewer
.PageUp();
249
if (this.
ScrollViewer
!= null)
252
this.
ScrollViewer
.PageDown();
261
if (this.
ScrollViewer
!= null)
264
this.
ScrollViewer
.ScrollToHome();
273
if (this.
ScrollViewer
!= null)
276
this.
ScrollViewer
.ScrollToEnd();
290
if (this.
ScrollViewer
!= null)
293
this.
ScrollViewer
.ScrollToHorizontalOffset(offset);
307
if (this.
ScrollViewer
!= null)
310
this.
ScrollViewer
.ScrollToVerticalOffset(offset);
569
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ExtentWidth : 0.0;
580
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ExtentHeight : 0.0;
591
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ViewportWidth : 0.0;
602
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ViewportHeight : 0.0;
616
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.HorizontalOffset : 0.0;
629
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.VerticalOffset : 0.0;
1051
if (this.
ScrollViewer
!= null)
1054
if ((e.Delta > 0 && VerticalOffset != 0) /* scrolling up */ || (e.Delta < 0 && VerticalOffset < this.
ScrollViewer
.ScrollableHeight) /* scrolling down */ )
1621
if (this.
ScrollViewer
!= null)
1623
this.
ScrollViewer
.ScrollChanged += new ScrollChangedEventHandler(OnScrollChanged);
1626
SetValue(TextEditor.PageHeightProperty, this.
ScrollViewer
.ViewportHeight);
1629
this.
ScrollViewer
.Focusable = false;
1632
this.
ScrollViewer
.HandlesMouseWheelScrolling = false;
1634
if (this.
ScrollViewer
.Background == null)
1637
this.
ScrollViewer
.Background = Brushes.Transparent;
1653
if (this.
ScrollViewer
!= null)
1655
this.
ScrollViewer
.LineUp();
1662
if (this.
ScrollViewer
!= null)
1664
this.
ScrollViewer
.LineDown();
1871
if (this.
ScrollViewer
!= null)
1873
this.
ScrollViewer
.ScrollChanged -= new ScrollChangedEventHandler(OnScrollChanged);
1896
if (this.
ScrollViewer
!= null)
1898
this.
ScrollViewer
.CanContentScroll = true;
2129
if (textBox != null && textBox.
ScrollViewer
!= null)
2134
textBox.
ScrollViewer
.ClearValue(e.Property);
2138
textBox.
ScrollViewer
.SetValue(e.Property, value);
System\Windows\Controls\TextBox.cs (12)
1101
if (this.
ScrollViewer
== null)
1180
if (this.
ScrollViewer
!= null)
1182
ScrollViewer
.ScrollToVerticalOffset(VerticalOffset - GetLineHeight());
1191
if (this.
ScrollViewer
!= null)
1193
ScrollViewer
.ScrollToVerticalOffset(VerticalOffset + GetLineHeight());
1813
this.
ScrollViewer
.ClearValue(MinHeightProperty);
1814
this.
ScrollViewer
.ClearValue(MaxHeightProperty);
1818
double chrome = this.
ScrollViewer
.ActualHeight - ViewportHeight;
1822
if (MinLines > 1 && this.
ScrollViewer
.MinHeight != value)
1824
this.
ScrollViewer
.MinHeight = value;
1829
if (MaxLines < Int32.MaxValue && this.
ScrollViewer
.MaxHeight != value)
1831
this.
ScrollViewer
.MaxHeight = value;