22 references to ViewportHeight
PresentationFramework (22)
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
77
verticalPercent = (val / (sv.ExtentHeight - sv.
ViewportHeight
)) * 100;
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (4)
175
owner.ScrollToVerticalOffset((owner.ExtentHeight - owner.
ViewportHeight
) * (double)verticalPercent * 0.01);
203
return (double)(owner.VerticalOffset * 100.0 / (owner.ExtentHeight - owner.
ViewportHeight
));
231
return Math.Min(100.0, (double)(owner.
ViewportHeight
* 100.0 / owner.ExtentHeight));
284
return owner.ScrollInfo != null && DoubleUtil.GreaterThan(owner.ExtentHeight, owner.
ViewportHeight
);
System\Windows\Controls\DataGrid.cs (1)
6142
int jumpDistance = Math.Max(1, (int)scrollHost.
ViewportHeight
- 1);
System\Windows\Controls\ItemsControl.cs (2)
2650
scrollHost.ScrollToVerticalOffset(scrollHost.VerticalOffset - scrollHost.
ViewportHeight
+ elementBounds.Bottom);
2811
return FindFocusable((int)(ScrollHost.VerticalOffset + Math.Max(ScrollHost.
ViewportHeight
- 1, 0)),
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
602
return (this.ScrollViewer != null) ? this.ScrollViewer.
ViewportHeight
: 0.0;
1626
SetValue(TextEditor.PageHeightProperty, this.ScrollViewer.
ViewportHeight
);
System\Windows\Controls\ScrollChangedEventArgs.cs (2)
98
/// <seealso cref="System.Windows.Controls.ScrollViewer.
ViewportHeight
"/>
114
/// <seealso cref="System.Windows.Controls.ScrollViewer.
ViewportHeight
"/>
System\Windows\Controls\ScrollViewer.cs (7)
287
|| !DoubleUtil.AreClose(
ViewportHeight
, ScrollInfo.ViewportHeight)
417
get { return Math.Max(0.0, ExtentHeight -
ViewportHeight
); }
774
/// DependencyProperty for <see cref="
ViewportHeight
" /> property.
1624
double viewportHeight =
ViewportHeight
+ 1d; // Using +1 to account for last partially visible item in viewport
2326
double oldViewportHeight =
ViewportHeight
;
2412
new Size(ViewportWidth,
ViewportHeight
),
2413
new Vector(ViewportWidth - oldViewportWidth,
ViewportHeight
- oldViewportHeight));
System\Windows\Controls\TreeView.cs (2)
676
if(DoubleUtil.GreaterThan(scroller.ExtentHeight, scroller.
ViewportHeight
))
688
if(DoubleUtil.GreaterThan(scroller.ExtentHeight, scroller.
ViewportHeight
))
System\windows\Documents\CaretElement.cs (1)
401
double scrollerHeight = scroller.
ViewportHeight
;