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