6 implementations of ViewportWidth
PresentationFramework (6)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
575public double ViewportWidth
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
664double IScrollInfo.ViewportWidth
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
339double IScrollInfo.ViewportWidth
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
277public double ViewportWidth
src\Framework\System\Windows\Controls\Stack.cs (1)
424public double ViewportWidth
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
1841public double ViewportWidth
18 references to ViewportWidth
PresentationFramework (18)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1413Rect viewport = new Rect(0, 0, scrollInfo.ViewportWidth, scrollInfo.ViewportHeight);
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
662/// <see cref="IScrollInfo.ViewportWidth"/>
src\Framework\MS\Internal\Documents\ScrollData.cs (1)
325/// <see cref="IScrollInfo.ViewportWidth"/>
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
337/// <see cref="IScrollInfo.ViewportWidth"/>
src\Framework\MS\Internal\Documents\TextDocumentView.cs (2)
214if (scrollInfo.ViewportWidth != 0 && scrollInfo.ViewportHeight != 0) 216visibleRect = new Rect(scrollInfo.HorizontalOffset, scrollInfo.VerticalOffset, scrollInfo.ViewportWidth, scrollInfo.ViewportHeight);
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
144Rect viewport = new Rect(isi.HorizontalOffset, isi.VerticalOffset, isi.ViewportWidth, isi.ViewportHeight); 160if (isi.ViewportWidth > 0)
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
2019availableViewportWidth = scrollInfo.ViewportWidth;
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
1344SetValue(ViewportWidthPropertyKey, _documentScrollInfo.ViewportWidth);
src\Framework\System\Windows\Controls\Primitives\IScrollInfo.cs (1)
102/// An implementation may coerce this value into a valid range, typically inclusively between 0 and <see cref="ExtentWidth" /> less <see cref="ViewportWidth" />.
src\Framework\System\Windows\Controls\ScrollViewer.cs (6)
259double viewport = ScrollInfo.ViewportWidth; 289|| !DoubleUtil.AreClose(ViewportWidth, ScrollInfo.ViewportWidth) 1232bool makeHorizontalBarVisible = hsbAuto && DoubleUtil.GreaterThan(isi.ExtentWidth, isi.ViewportWidth); 1277bool makeHorizontalBarVisible2 = !makeHorizontalBarVisible && DoubleUtil.GreaterThan(isi.ExtentWidth, isi.ViewportWidth); 2394if (ScrollInfo != null && !DoubleUtil.AreClose(oldViewportWidth, ScrollInfo.ViewportWidth)) 2396_xSize = ScrollInfo.ViewportWidth;
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
265isi.SetHorizontalOffset(alignToTop ? rangeBounds.Left : (rangeBounds.Right - isi.ViewportWidth));