19 references to ViewportWidth
PresentationFramework (19)
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
67horizontalPercent = (val / (sv.ExtentWidth - sv.ViewportWidth)) * 100;
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (4)
163owner.ScrollToHorizontalOffset((owner.ExtentWidth - owner.ViewportWidth) * (double)horizontalPercent * 0.01); 181return (double)(owner.HorizontalOffset * 100.0 / (owner.ExtentWidth - owner.ViewportWidth)); 209return Math.Min(100.0, (double)(owner.ViewportWidth * 100.0 / owner.ExtentWidth)); 268return owner.ScrollInfo != null && DoubleUtil.GreaterThan(owner.ExtentWidth, owner.ViewportWidth);
System\Windows\Controls\DataGrid.cs (1)
8596double totalAvailableWidth = InternalScrollHost.ViewportWidth;
System\Windows\Controls\ItemsControl.cs (2)
2637scrollHost.ScrollToHorizontalOffset(scrollHost.HorizontalOffset - scrollHost.ViewportWidth + elementBounds.Right); 2816return FindFocusable((int)(ScrollHost.HorizontalOffset + Math.Max(ScrollHost.ViewportWidth - 1, 0)),
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
582return (this.ScrollViewer != null) ? this.ScrollViewer.ViewportWidth : 0.0;
System\Windows\Controls\ScrollChangedEventArgs.cs (2)
86/// <seealso cref="System.Windows.Controls.ScrollViewer.ViewportWidth"/> 102/// <seealso cref="System.Windows.Controls.ScrollViewer.ViewportWidth"/>
System\Windows\Controls\ScrollViewer.cs (7)
278|| !DoubleUtil.AreClose(ViewportWidth, ScrollInfo.ViewportWidth) 401get { return Math.Max(0.0, ExtentWidth - ViewportWidth); } 749/// DependencyProperty for <see cref="ViewportWidth" /> property. 1615double viewportWidth = ViewportWidth + 1d; // Using +1 to account for last partially visible item in viewport 2317double oldViewportWidth = ViewportWidth; 2404new Size(ViewportWidth, ViewportHeight), 2405new Vector(ViewportWidth - oldViewportWidth, ViewportHeight - oldViewportHeight));
System\windows\Documents\CaretElement.cs (1)
397double scrollerWidth = scroller.ViewportWidth;