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)
162
if (this.
ScrollViewer
!= null)
165
this.
ScrollViewer
.LineLeft();
174
if (this.
ScrollViewer
!= null)
177
this.
ScrollViewer
.LineRight();
186
if (this.
ScrollViewer
!= null)
189
this.
ScrollViewer
.PageLeft();
198
if (this.
ScrollViewer
!= null)
201
this.
ScrollViewer
.PageRight();
228
if (this.
ScrollViewer
!= null)
231
this.
ScrollViewer
.PageUp();
240
if (this.
ScrollViewer
!= null)
243
this.
ScrollViewer
.PageDown();
252
if (this.
ScrollViewer
!= null)
255
this.
ScrollViewer
.ScrollToHome();
264
if (this.
ScrollViewer
!= null)
267
this.
ScrollViewer
.ScrollToEnd();
281
if (this.
ScrollViewer
!= null)
284
this.
ScrollViewer
.ScrollToHorizontalOffset(offset);
298
if (this.
ScrollViewer
!= null)
301
this.
ScrollViewer
.ScrollToVerticalOffset(offset);
560
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ExtentWidth : 0.0;
571
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ExtentHeight : 0.0;
582
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ViewportWidth : 0.0;
593
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.ViewportHeight : 0.0;
607
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.HorizontalOffset : 0.0;
620
return (this.
ScrollViewer
!= null) ? this.
ScrollViewer
.VerticalOffset : 0.0;
1042
if (this.
ScrollViewer
!= null)
1045
if ((e.Delta > 0 && VerticalOffset != 0) /* scrolling up */ || (e.Delta < 0 && VerticalOffset < this.
ScrollViewer
.ScrollableHeight) /* scrolling down */ )
1612
if (this.
ScrollViewer
!= null)
1614
this.
ScrollViewer
.ScrollChanged += new ScrollChangedEventHandler(OnScrollChanged);
1617
SetValue(TextEditor.PageHeightProperty, this.
ScrollViewer
.ViewportHeight);
1620
this.
ScrollViewer
.Focusable = false;
1623
this.
ScrollViewer
.HandlesMouseWheelScrolling = false;
1625
if (this.
ScrollViewer
.Background == null)
1628
this.
ScrollViewer
.Background = Brushes.Transparent;
1644
if (this.
ScrollViewer
!= null)
1646
this.
ScrollViewer
.LineUp();
1653
if (this.
ScrollViewer
!= null)
1655
this.
ScrollViewer
.LineDown();
1862
if (this.
ScrollViewer
!= null)
1864
this.
ScrollViewer
.ScrollChanged -= new ScrollChangedEventHandler(OnScrollChanged);
1887
if (this.
ScrollViewer
!= null)
1889
this.
ScrollViewer
.CanContentScroll = true;
2120
if (textBox != null && textBox.
ScrollViewer
!= null)
2125
textBox.
ScrollViewer
.ClearValue(e.Property);
2129
textBox.
ScrollViewer
.SetValue(e.Property, value);
System\Windows\Controls\TextBox.cs (12)
1094
if (this.
ScrollViewer
== null)
1173
if (this.
ScrollViewer
!= null)
1175
ScrollViewer
.ScrollToVerticalOffset(VerticalOffset - GetLineHeight());
1184
if (this.
ScrollViewer
!= null)
1186
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;