12 references to CoerceOffset
PresentationFramework (12)
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
849
CoerceOffset
(_scrollData._offset.X, _scrollData._extent.Width, _scrollData._viewport.Width),
850
CoerceOffset
(_scrollData._offset.Y, _scrollData._extent.Height, _scrollData._viewport.Height));
src\Framework\System\Windows\Controls\Stack.cs (2)
281
newOffset.X = ScrollContentPresenter.
CoerceOffset
(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width);
282
newOffset.Y = ScrollContentPresenter.
CoerceOffset
(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (8)
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);
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);
4880
viewport.X = ScrollContentPresenter.
CoerceOffset
(viewport.X, extent.Width, viewport.Width);
4883
viewport.X = ScrollContentPresenter.
CoerceOffset
(viewport.X - 1, extent.Width, viewport.Width);
4889
viewport.Y = ScrollContentPresenter.
CoerceOffset
(viewport.Y, extent.Height, viewport.Height);
4892
viewport.Y = ScrollContentPresenter.
CoerceOffset
(viewport.Y - 1, extent.Height, viewport.Height);