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