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