22 references to ViewportHeight
PresentationFramework (22)
System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
70
verticalPercent = (val / (sv.ExtentHeight - sv.
ViewportHeight
)) * 100;
System\Windows\Automation\Peers\ScrollViewerAutomationPeer.cs (4)
166
owner.ScrollToVerticalOffset((owner.ExtentHeight - owner.
ViewportHeight
) * (double)verticalPercent * 0.01);
194
return (double)(owner.VerticalOffset * 100.0 / (owner.ExtentHeight - owner.
ViewportHeight
));
222
return Math.Min(100.0, (double)(owner.
ViewportHeight
* 100.0 / owner.ExtentHeight));
275
return owner.ScrollInfo != null && DoubleUtil.GreaterThan(owner.ExtentHeight, owner.
ViewportHeight
);
System\Windows\Controls\DataGrid.cs (1)
6097
int jumpDistance = Math.Max(1, (int)scrollHost.
ViewportHeight
- 1);
System\Windows\Controls\ItemsControl.cs (2)
2610
scrollHost.ScrollToVerticalOffset(scrollHost.VerticalOffset - scrollHost.
ViewportHeight
+ elementBounds.Bottom);
2771
return FindFocusable((int)(ScrollHost.VerticalOffset + Math.Max(ScrollHost.
ViewportHeight
- 1, 0)),
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
594
return (this.ScrollViewer != null) ? this.ScrollViewer.
ViewportHeight
: 0.0;
1558
SetValue(TextEditor.PageHeightProperty, this.ScrollViewer.
ViewportHeight
);
System\Windows\Controls\ScrollChangedEventArgs.cs (2)
93
/// <seealso cref="System.Windows.Controls.ScrollViewer.
ViewportHeight
"/>
109
/// <seealso cref="System.Windows.Controls.ScrollViewer.
ViewportHeight
"/>
System\Windows\Controls\ScrollViewer.cs (7)
278
|| !DoubleUtil.AreClose(
ViewportHeight
, ScrollInfo.ViewportHeight)
408
get { return Math.Max(0.0, ExtentHeight -
ViewportHeight
); }
765
/// DependencyProperty for <see cref="
ViewportHeight
" /> property.
1614
double viewportHeight =
ViewportHeight
+ 1d; // Using +1 to account for last partially visible item in viewport
2316
double oldViewportHeight =
ViewportHeight
;
2402
new Size(ViewportWidth,
ViewportHeight
),
2403
new Vector(ViewportWidth - oldViewportWidth,
ViewportHeight
- oldViewportHeight))
System\Windows\Controls\TreeView.cs (2)
670
if(DoubleUtil.GreaterThan(scroller.ExtentHeight, scroller.
ViewportHeight
))
682
if(DoubleUtil.GreaterThan(scroller.ExtentHeight, scroller.
ViewportHeight
))
System\windows\Documents\CaretElement.cs (1)
396
double scrollerHeight = scroller.
ViewportHeight
;