22 references to ViewportHeight
PresentationFramework (22)
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
71verticalPercent = (val / (sv.ExtentHeight - sv.ViewportHeight)) * 100;
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (4)
167owner.ScrollToVerticalOffset((owner.ExtentHeight - owner.ViewportHeight) * (double)verticalPercent * 0.01); 195return (double)(owner.VerticalOffset * 100.0 / (owner.ExtentHeight - owner.ViewportHeight)); 223return Math.Min(100.0, (double)(owner.ViewportHeight * 100.0 / owner.ExtentHeight)); 276return owner.ScrollInfo != null && DoubleUtil.GreaterThan(owner.ExtentHeight, owner.ViewportHeight);
System\Windows\Controls\DataGrid.cs (1)
6139int jumpDistance = Math.Max(1, (int)scrollHost.ViewportHeight - 1);
System\Windows\Controls\ItemsControl.cs (2)
2641scrollHost.ScrollToVerticalOffset(scrollHost.VerticalOffset - scrollHost.ViewportHeight + elementBounds.Bottom); 2802return FindFocusable((int)(ScrollHost.VerticalOffset + Math.Max(ScrollHost.ViewportHeight - 1, 0)),
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
593return (this.ScrollViewer != null) ? this.ScrollViewer.ViewportHeight : 0.0; 1617SetValue(TextEditor.PageHeightProperty, this.ScrollViewer.ViewportHeight);
System\Windows\Controls\ScrollChangedEventArgs.cs (2)
94/// <seealso cref="System.Windows.Controls.ScrollViewer.ViewportHeight"/> 110/// <seealso cref="System.Windows.Controls.ScrollViewer.ViewportHeight"/>
System\Windows\Controls\ScrollViewer.cs (7)
279|| !DoubleUtil.AreClose(ViewportHeight, ScrollInfo.ViewportHeight) 409get { return Math.Max(0.0, ExtentHeight - ViewportHeight); } 766/// DependencyProperty for <see cref="ViewportHeight" /> property. 1616double viewportHeight = ViewportHeight + 1d; // Using +1 to account for last partially visible item in viewport 2318double oldViewportHeight = ViewportHeight; 2404new Size(ViewportWidth, ViewportHeight), 2405new Vector(ViewportWidth - oldViewportWidth, ViewportHeight - oldViewportHeight));
System\Windows\Controls\TreeView.cs (2)
671if(DoubleUtil.GreaterThan(scroller.ExtentHeight, scroller.ViewportHeight)) 683if(DoubleUtil.GreaterThan(scroller.ExtentHeight, scroller.ViewportHeight))
System\windows\Documents\CaretElement.cs (1)
398double scrollerHeight = scroller.ViewportHeight;