19 references to ViewportWidth
PresentationFramework (19)
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
73horizontalPercent = (val / (sv.ExtentWidth - sv.ViewportWidth)) * 100;
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (4)
171owner.ScrollToHorizontalOffset((owner.ExtentWidth - owner.ViewportWidth) * (double)horizontalPercent * 0.01); 189return (double)(owner.HorizontalOffset * 100.0 / (owner.ExtentWidth - owner.ViewportWidth)); 217return Math.Min(100.0, (double)(owner.ViewportWidth * 100.0 / owner.ExtentWidth)); 276return owner.ScrollInfo != null && DoubleUtil.GreaterThan(owner.ExtentWidth, owner.ViewportWidth);
System\Windows\Controls\DataGrid.cs (1)
8599double totalAvailableWidth = InternalScrollHost.ViewportWidth;
System\Windows\Controls\ItemsControl.cs (2)
2646scrollHost.ScrollToHorizontalOffset(scrollHost.HorizontalOffset - scrollHost.ViewportWidth + elementBounds.Right); 2825return FindFocusable((int)(ScrollHost.HorizontalOffset + Math.Max(ScrollHost.ViewportWidth - 1, 0)),
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
591return (this.ScrollViewer != null) ? this.ScrollViewer.ViewportWidth : 0.0;
System\Windows\Controls\ScrollChangedEventArgs.cs (2)
90/// <seealso cref="System.Windows.Controls.ScrollViewer.ViewportWidth"/> 106/// <seealso cref="System.Windows.Controls.ScrollViewer.ViewportWidth"/>
System\Windows\Controls\ScrollViewer.cs (7)
286|| !DoubleUtil.AreClose(ViewportWidth, ScrollInfo.ViewportWidth) 409get { return Math.Max(0.0, ExtentWidth - ViewportWidth); } 757/// DependencyProperty for <see cref="ViewportWidth" /> property. 1623double viewportWidth = ViewportWidth + 1d; // Using +1 to account for last partially visible item in viewport 2325double oldViewportWidth = ViewportWidth; 2412new Size(ViewportWidth, ViewportHeight), 2413new Vector(ViewportWidth - oldViewportWidth, ViewportHeight - oldViewportHeight));
System\windows\Documents\CaretElement.cs (1)
400double scrollerWidth = scroller.ViewportWidth;