5 writes to _viewport
PresentationFramework (5)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (5)
10273
_scrollData.
_viewport
= viewportSize;
10776
_scrollData.
_viewport
= viewportSize;
11632
_viewport
= _extent = _maxDesiredSize = new Size();
11699
_viewport
= value;
12835
s._scrollData.
_viewport
= _scrollData._viewport;
40 references to _viewport
PresentationFramework (40)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (40)
574
_scrollData._offset.X = ScrollContentPresenter.CoerceOffset(scrollX, _scrollData._extent.Width, _scrollData.
_viewport
.Width);
700
_scrollData._offset.Y = ScrollContentPresenter.CoerceOffset(scrollY, _scrollData._extent.Height, _scrollData.
_viewport
.Height);
934
_scrollData._extent.Width - _scrollData.
_viewport
.Width);
939
_scrollData._extent.Height - _scrollData.
_viewport
.Height);
982
if (DoubleUtil.LessThan(expectedOffset, 0) || DoubleUtil.GreaterThan(expectedOffset, _scrollData._extent.Width - _scrollData.
_viewport
.Width))
984
Debug.Assert(DoubleUtil.AreClose(actualOffset, 0) || DoubleUtil.AreClose(actualOffset, _scrollData._extent.Width - _scrollData.
_viewport
.Width), "The actual offset should already be at the beginning or the end.");
1001
if (DoubleUtil.LessThan(expectedOffset, 0) || DoubleUtil.GreaterThan(expectedOffset, _scrollData._extent.Height - _scrollData.
_viewport
.Height))
1003
Debug.Assert(DoubleUtil.AreClose(actualOffset, 0) || DoubleUtil.AreClose(actualOffset, _scrollData._extent.Height - _scrollData.
_viewport
.Height), "The actual offset should already be at the beginning or the end.");
1492
newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X, _scrollData._extent.Width, _scrollData.
_viewport
.Width);
1493
newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y, _scrollData._extent.Height, _scrollData.
_viewport
.Height);
1846
return _scrollData.
_viewport
.Width;
1858
return _scrollData.
_viewport
.Height;
4257
viewportSize = _scrollData.
_viewport
;
9724
bool viewportSizeChanged = !DoubleUtil.AreClose(viewportSize, _scrollData.
_viewport
);
9871
!DoubleUtil.AreClose(_scrollData.
_viewport
.Width, viewportSize.Width))
9877
"vpSz:", _scrollData.
_viewport
.Width, viewportSize.Width,
9887
viewportSize.Width = _scrollData.
_viewport
.Width;
10088
!DoubleUtil.AreClose(_scrollData.
_viewport
.Height, viewportSize.Height))
10094
"vpSz:", _scrollData.
_viewport
.Height, viewportSize.Height,
10104
viewportSize.Height = _scrollData.
_viewport
.Height;
10256
viewportSizeChanged = !DoubleUtil.AreClose(viewportSize, _scrollData.
_viewport
);
10264
"vp:", _scrollData.
_viewport
, viewportSize);
10271
Size oldViewportSize = _scrollData.
_viewport
;
10452
bool viewportSizeChanged = !DoubleUtil.AreClose(viewportSize, _scrollData.
_viewport
);
10544
!DoubleUtil.AreClose(_scrollData.
_viewport
.Width, viewportSize.Width))
10552
viewportSize.Width = _scrollData.
_viewport
.Width;
10675
!DoubleUtil.AreClose(_scrollData.
_viewport
.Height, viewportSize.Height))
10683
viewportSize.Height = _scrollData.
_viewport
.Height;
10768
viewportSizeChanged = !DoubleUtil.AreClose(viewportSize, _scrollData.
_viewport
);
10774
Size oldViewportSize = _scrollData.
_viewport
;
11083
viewportSize = (int)_scrollData.
_viewport
.Width;
11088
viewportSize = (int)_scrollData.
_viewport
.Height;
11642
_viewport
.Width == 0.0 &&
11643
_viewport
.Height == 0.0 &&
11695
return
_viewport
;
11736
if (DoubleUtil.GreaterThanOrClose(newOffset, _extent.Width -
_viewport
.Width))
11740
else if (DoubleUtil.GreaterThan(Math.Abs(newOffset - oldOffset),
_viewport
.Width))
11752
if (DoubleUtil.GreaterThanOrClose(newOffset, _extent.Height -
_viewport
.Height))
11756
else if (DoubleUtil.GreaterThan(Math.Abs(newOffset - oldOffset),
_viewport
.Height))
12835
s._scrollData._viewport = _scrollData.
_viewport
;