12 references to CoerceOffset
PresentationFramework (12)
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
828
CoerceOffset
(_scrollData._offset.X, _scrollData._extent.Width, _scrollData._viewport.Width),
829
CoerceOffset
(_scrollData._offset.Y, _scrollData._extent.Height, _scrollData._viewport.Height));
System\Windows\Controls\Stack.cs (2)
265
newOffset.X = ScrollContentPresenter.
CoerceOffset
(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width);
266
newOffset.Y = ScrollContentPresenter.
CoerceOffset
(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height);
System\Windows\Controls\VirtualizingStackPanel.cs (8)
570
_scrollData._offset.X = ScrollContentPresenter.
CoerceOffset
(scrollX, _scrollData._extent.Width, _scrollData._viewport.Width);
698
_scrollData._offset.Y = ScrollContentPresenter.
CoerceOffset
(scrollY, _scrollData._extent.Height, _scrollData._viewport.Height);
1532
newOffset.X = ScrollContentPresenter.
CoerceOffset
(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width);
1533
newOffset.Y = ScrollContentPresenter.
CoerceOffset
(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height);
4990
viewport.X = ScrollContentPresenter.
CoerceOffset
(viewport.X, extent.Width, viewport.Width);
4993
viewport.X = ScrollContentPresenter.
CoerceOffset
(viewport.X - 1, extent.Width, viewport.Width);
4999
viewport.Y = ScrollContentPresenter.
CoerceOffset
(viewport.Y, extent.Height, viewport.Height);
5002
viewport.Y = ScrollContentPresenter.
CoerceOffset
(viewport.Y - 1, extent.Height, viewport.Height);