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