68 references to ScrollViewer
PresentationFramework (68)
src\Framework\System\Windows\Automation\Peers\RichTextBoxAutomationPeer.cs (2)
59if (owner.ScrollViewer != null) 61returnValue = owner.ScrollViewer.CreateAutomationPeer();
src\Framework\System\Windows\Automation\Peers\TextBoxAutomationPeer.cs (2)
60if (owner.ScrollViewer != null) 62returnValue = owner.ScrollViewer.CreateAutomationPeer();
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (52)
194if (this.ScrollViewer != null) 197this.ScrollViewer.LineLeft(); 206if (this.ScrollViewer != null) 209this.ScrollViewer.LineRight(); 218if (this.ScrollViewer != null) 221this.ScrollViewer.PageLeft(); 230if (this.ScrollViewer != null) 233this.ScrollViewer.PageRight(); 260if (this.ScrollViewer != null) 263this.ScrollViewer.PageUp(); 272if (this.ScrollViewer != null) 275this.ScrollViewer.PageDown(); 284if (this.ScrollViewer != null) 287this.ScrollViewer.ScrollToHome(); 296if (this.ScrollViewer != null) 299this.ScrollViewer.ScrollToEnd(); 313if (this.ScrollViewer != null) 316this.ScrollViewer.ScrollToHorizontalOffset(offset); 330if (this.ScrollViewer != null) 333this.ScrollViewer.ScrollToVerticalOffset(offset); 592return (this.ScrollViewer != null) ? this.ScrollViewer.ExtentWidth : 0.0; 603return (this.ScrollViewer != null) ? this.ScrollViewer.ExtentHeight : 0.0; 614return (this.ScrollViewer != null) ? this.ScrollViewer.ViewportWidth : 0.0; 625return (this.ScrollViewer != null) ? this.ScrollViewer.ViewportHeight : 0.0; 639return (this.ScrollViewer != null) ? this.ScrollViewer.HorizontalOffset : 0.0; 652return (this.ScrollViewer != null) ? this.ScrollViewer.VerticalOffset : 0.0; 1077if (this.ScrollViewer != null) 1080if ((e.Delta > 0 && VerticalOffset != 0) /* scrolling up */ || (e.Delta < 0 && VerticalOffset < this.ScrollViewer.ScrollableHeight) /* scrolling down */ ) 1650if (this.ScrollViewer != null) 1652this.ScrollViewer.ScrollChanged += new ScrollChangedEventHandler(OnScrollChanged); 1655SetValue(TextEditor.PageHeightProperty, this.ScrollViewer.ViewportHeight); 1658this.ScrollViewer.Focusable = false; 1661this.ScrollViewer.HandlesMouseWheelScrolling = false; 1663if (this.ScrollViewer.Background == null) 1666this.ScrollViewer.Background = Brushes.Transparent; 1682if (this.ScrollViewer != null) 1684this.ScrollViewer.LineUp(); 1691if (this.ScrollViewer != null) 1693this.ScrollViewer.LineDown(); 1902if (this.ScrollViewer != null) 1904this.ScrollViewer.ScrollChanged -= new ScrollChangedEventHandler(OnScrollChanged); 1927if (this.ScrollViewer != null) 1929this.ScrollViewer.CanContentScroll = true; 2160if (textBox != null && textBox.ScrollViewer != null) 2165textBox.ScrollViewer.ClearValue(e.Property); 2169textBox.ScrollViewer.SetValue(e.Property, value);
src\Framework\System\Windows\Controls\TextBox.cs (12)
1092if (this.ScrollViewer == null) 1171if (this.ScrollViewer != null) 1173ScrollViewer.ScrollToVerticalOffset(VerticalOffset - GetLineHeight()); 1182if (this.ScrollViewer != null) 1184ScrollViewer.ScrollToVerticalOffset(VerticalOffset + GetLineHeight()); 1806this.ScrollViewer.ClearValue(MinHeightProperty); 1807this.ScrollViewer.ClearValue(MaxHeightProperty); 1811double chrome = this.ScrollViewer.ActualHeight - ViewportHeight; 1815if (MinLines > 1 && this.ScrollViewer.MinHeight != value) 1817this.ScrollViewer.MinHeight = value; 1822if (MaxLines < Int32.MaxValue && this.ScrollViewer.MaxHeight != value) 1824this.ScrollViewer.MaxHeight = value;