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