src\Framework\System\Windows\Controls\ScrollViewer.cs (14)
72[TemplatePart(Name = "PART_ScrollContentPresenter", Type = typeof(ScrollContentPresenter))]
158double validatedOffset = ScrollContentPresenter.ValidateInputOffset(offset, "offset");
170double validatedOffset = ScrollContentPresenter.ValidateInputOffset(offset, "offset");
179double validatedOffset = ScrollContentPresenter.ValidateInputOffset(offset, "offset");
188double validatedOffset = ScrollContentPresenter.ValidateInputOffset(offset, "offset");
971ScrollContentPresenter viewPort = GetTemplateChild(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
1052private bool IsInViewport(ScrollContentPresenter scp, DependencyObject element)
1640ScrollContentPresenter viewport = GetTemplateChild(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
1699private bool ShouldManipulateScroll(ManipulationStartingEventArgs e, ScrollContentPresenter viewport)
2310if(isi.GetType() == typeof(System.Windows.Controls.ScrollContentPresenter))
2312rcNew = ((System.Windows.Controls.ScrollContentPresenter)isi).MakeVisible(child, targetRect, false);
2723FrameworkElementFactory content = new FrameworkElementFactory(typeof(ScrollContentPresenter), ScrollContentPresenterTemplateName);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (11)
489double scrollX = ScrollContentPresenter.ValidateInputOffset(offset, "HorizontalOffset");
574_scrollData._offset.X = ScrollContentPresenter.CoerceOffset(scrollX, _scrollData._extent.Width, _scrollData._viewport.Width);
615double scrollY = ScrollContentPresenter.ValidateInputOffset(offset, "VerticalOffset");
700_scrollData._offset.Y = ScrollContentPresenter.CoerceOffset(scrollY, _scrollData._extent.Height, _scrollData._viewport.Height);
1492newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width);
1493newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height);
4880viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X, extent.Width, viewport.Width);
4883viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X - 1, extent.Width, viewport.Width);
4889viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y, extent.Height, viewport.Height);
4892viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y - 1, extent.Height, viewport.Height);
11039minPhysicalOffset = ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(