22 references to ViewportHeight
PresentationFramework (22)
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
71
verticalPercent = (val / (sv.ExtentHeight - sv.
ViewportHeight
)) * 100;
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (4)
167
owner.ScrollToVerticalOffset((owner.ExtentHeight - owner.
ViewportHeight
) * (double)verticalPercent * 0.01);
195
return (double)(owner.VerticalOffset * 100.0 / (owner.ExtentHeight - owner.
ViewportHeight
));
223
return Math.Min(100.0, (double)(owner.
ViewportHeight
* 100.0 / owner.ExtentHeight));
276
return owner.ScrollInfo != null && DoubleUtil.GreaterThan(owner.ExtentHeight, owner.
ViewportHeight
);
System\Windows\Controls\DataGrid.cs (1)
6139
int jumpDistance = Math.Max(1, (int)scrollHost.
ViewportHeight
- 1);
System\Windows\Controls\ItemsControl.cs (2)
2641
scrollHost.ScrollToVerticalOffset(scrollHost.VerticalOffset - scrollHost.
ViewportHeight
+ elementBounds.Bottom);
2802
return FindFocusable((int)(ScrollHost.VerticalOffset + Math.Max(ScrollHost.
ViewportHeight
- 1, 0)),
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
593
return (this.ScrollViewer != null) ? this.ScrollViewer.
ViewportHeight
: 0.0;
1617
SetValue(TextEditor.PageHeightProperty, this.ScrollViewer.
ViewportHeight
);
System\Windows\Controls\ScrollChangedEventArgs.cs (2)
94
/// <seealso cref="System.Windows.Controls.ScrollViewer.
ViewportHeight
"/>
110
/// <seealso cref="System.Windows.Controls.ScrollViewer.
ViewportHeight
"/>
System\Windows\Controls\ScrollViewer.cs (7)
279
|| !DoubleUtil.AreClose(
ViewportHeight
, ScrollInfo.ViewportHeight)
409
get { return Math.Max(0.0, ExtentHeight -
ViewportHeight
); }
766
/// DependencyProperty for <see cref="
ViewportHeight
" /> property.
1616
double viewportHeight =
ViewportHeight
+ 1d; // Using +1 to account for last partially visible item in viewport
2318
double oldViewportHeight =
ViewportHeight
;
2404
new Size(ViewportWidth,
ViewportHeight
),
2405
new Vector(ViewportWidth - oldViewportWidth,
ViewportHeight
- oldViewportHeight));
System\Windows\Controls\TreeView.cs (2)
671
if(DoubleUtil.GreaterThan(scroller.ExtentHeight, scroller.
ViewportHeight
))
683
if(DoubleUtil.GreaterThan(scroller.ExtentHeight, scroller.
ViewportHeight
))
System\windows\Documents\CaretElement.cs (1)
398
double scrollerHeight = scroller.
ViewportHeight
;