12 references to CoerceOffset
PresentationFramework (12)
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (2)
843
CoerceOffset
(_scrollData._offset.X, _scrollData._extent.Width, _scrollData._viewport.Width),
844
CoerceOffset
(_scrollData._offset.Y, _scrollData._extent.Height, _scrollData._viewport.Height));
System\Windows\Controls\Stack.cs (2)
275
newOffset.X = ScrollContentPresenter.
CoerceOffset
(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width);
276
newOffset.Y = ScrollContentPresenter.
CoerceOffset
(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height);
System\Windows\Controls\VirtualizingStackPanel.cs (8)
575
_scrollData._offset.X = ScrollContentPresenter.
CoerceOffset
(scrollX, _scrollData._extent.Width, _scrollData._viewport.Width);
703
_scrollData._offset.Y = ScrollContentPresenter.
CoerceOffset
(scrollY, _scrollData._extent.Height, _scrollData._viewport.Height);
1541
newOffset.X = ScrollContentPresenter.
CoerceOffset
(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width);
1542
newOffset.Y = ScrollContentPresenter.
CoerceOffset
(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height);
4997
viewport.X = ScrollContentPresenter.
CoerceOffset
(viewport.X, extent.Width, viewport.Width);
5000
viewport.X = ScrollContentPresenter.
CoerceOffset
(viewport.X - 1, extent.Width, viewport.Width);
5006
viewport.Y = ScrollContentPresenter.
CoerceOffset
(viewport.Y, extent.Height, viewport.Height);
5009
viewport.Y = ScrollContentPresenter.
CoerceOffset
(viewport.Y - 1, extent.Height, viewport.Height);