31 references to ViewportHeight
PresentationFramework (22)
src\Framework\System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
73verticalPercent = (val / (sv.ExtentHeight - sv.ViewportHeight)) * 100;
src\Framework\System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (4)
172owner.ScrollToVerticalOffset((owner.ExtentHeight - owner.ViewportHeight) * (double)verticalPercent * 0.01); 200return (double)(owner.VerticalOffset * 100.0 / (owner.ExtentHeight - owner.ViewportHeight)); 228return Math.Min(100.0, (double)(owner.ViewportHeight * 100.0 / owner.ExtentHeight)); 281return owner.ScrollInfo != null && DoubleUtil.GreaterThan(owner.ExtentHeight, owner.ViewportHeight);
src\Framework\System\Windows\Controls\DataGrid.cs (1)
6147int jumpDistance = Math.Max(1, (int)scrollHost.ViewportHeight - 1);
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
2653scrollHost.ScrollToVerticalOffset(scrollHost.VerticalOffset - scrollHost.ViewportHeight + elementBounds.Bottom); 2814return FindFocusable((int)(ScrollHost.VerticalOffset + Math.Max(ScrollHost.ViewportHeight - 1, 0)),
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
625return (this.ScrollViewer != null) ? this.ScrollViewer.ViewportHeight : 0.0; 1655SetValue(TextEditor.PageHeightProperty, this.ScrollViewer.ViewportHeight);
src\Framework\System\Windows\Controls\ScrollChangedEventArgs.cs (2)
100/// <seealso cref="System.Windows.Controls.ScrollViewer.ViewportHeight"/> 116/// <seealso cref="System.Windows.Controls.ScrollViewer.ViewportHeight"/>
src\Framework\System\Windows\Controls\ScrollViewer.cs (7)
290|| !DoubleUtil.AreClose(ViewportHeight, ScrollInfo.ViewportHeight) 420get { return Math.Max(0.0, ExtentHeight - ViewportHeight); } 795/// DependencyProperty for <see cref="ViewportHeight" /> property. 1670double viewportHeight = ViewportHeight + 1d; // Using +1 to account for last partially visible item in viewport 2365double oldViewportHeight = ViewportHeight; 2451new Size(ViewportWidth, ViewportHeight), 2452new Vector(ViewportWidth - oldViewportWidth, ViewportHeight - oldViewportHeight));
src\Framework\System\Windows\Controls\TreeView.cs (2)
677if(DoubleUtil.GreaterThan(scroller.ExtentHeight, scroller.ViewportHeight)) 689if(DoubleUtil.GreaterThan(scroller.ExtentHeight, scroller.ViewportHeight))
src\Framework\System\windows\Documents\CaretElement.cs (1)
404double scrollerHeight = scroller.ViewportHeight;
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (1)
141anchor = FindAnchor(anchorPoint, adornerSize, new Rect(0, 0, this.ScrollViewer.ViewportWidth, this.ScrollViewer.ViewportHeight));
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (4)
325get { return (null == MapSource || 0.0 == MapSource.ViewportHeight ? 1.0 : MapSource.ViewportHeight); } 451height = (this.MapSource.ViewportHeight / this.MapSource.ExtentHeight) * this.MapHeight; 509System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "{0} ScrollViewer: EWidth {1}, EHeight {2}, AWidth {3}, AHeight {4}, ViewPortW {5} ViewPortH {6}", prefix, mapSource.ExtentWidth, mapSource.ExtentHeight, mapSource.ActualWidth, mapSource.ActualHeight, mapSource.ViewportWidth, mapSource.ViewportHeight));
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
716height = Math.Min(fe.RenderSize.Height, designerView.ScrollViewer.ViewportHeight);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1688mousePosition.Y > 0 && mousePosition.Y < scrollViewer.ViewportHeight;
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (1)
120return mousePosition.X < this.scrollViewer.ViewportWidth && mousePosition.Y < this.scrollViewer.ViewportHeight;
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (1)
195Rect viewerBounds = new Rect(parentView.HorizontalOffset, parentView.VerticalOffset, parentView.ViewportWidth, parentView.ViewportHeight);