19 references to ViewportWidth
PresentationFramework (19)
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
66
horizontalPercent = (val / (sv.ExtentWidth - sv.
ViewportWidth
)) * 100;
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (4)
162
owner.ScrollToHorizontalOffset((owner.ExtentWidth - owner.
ViewportWidth
) * (double)horizontalPercent * 0.01);
180
return (double)(owner.HorizontalOffset * 100.0 / (owner.ExtentWidth - owner.
ViewportWidth
));
208
return Math.Min(100.0, (double)(owner.
ViewportWidth
* 100.0 / owner.ExtentWidth));
267
return owner.ScrollInfo != null && DoubleUtil.GreaterThan(owner.ExtentWidth, owner.
ViewportWidth
);
System\Windows\Controls\DataGrid.cs (1)
8552
double totalAvailableWidth = InternalScrollHost.
ViewportWidth
;
System\Windows\Controls\ItemsControl.cs (2)
2606
scrollHost.ScrollToHorizontalOffset(scrollHost.HorizontalOffset - scrollHost.
ViewportWidth
+ elementBounds.Right);
2785
return FindFocusable((int)(ScrollHost.HorizontalOffset + Math.Max(ScrollHost.
ViewportWidth
- 1, 0)),
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
583
return (this.ScrollViewer != null) ? this.ScrollViewer.
ViewportWidth
: 0.0;
System\Windows\Controls\ScrollChangedEventArgs.cs (2)
85
/// <seealso cref="System.Windows.Controls.ScrollViewer.
ViewportWidth
"/>
101
/// <seealso cref="System.Windows.Controls.ScrollViewer.
ViewportWidth
"/>
System\Windows\Controls\ScrollViewer.cs (7)
277
|| !DoubleUtil.AreClose(
ViewportWidth
, ScrollInfo.ViewportWidth)
400
get { return Math.Max(0.0, ExtentWidth -
ViewportWidth
); }
748
/// DependencyProperty for <see cref="
ViewportWidth
" /> property.
1613
double viewportWidth =
ViewportWidth
+ 1d; // Using +1 to account for last partially visible item in viewport
2315
double oldViewportWidth =
ViewportWidth
;
2402
new Size(
ViewportWidth
, ViewportHeight),
2403
new Vector(
ViewportWidth
- oldViewportWidth, ViewportHeight - oldViewportHeight))
System\windows\Documents\CaretElement.cs (1)
395
double scrollerWidth = scroller.
ViewportWidth
;