System\Windows\Controls\ScrollViewer.cs (14)
62[TemplatePart(Name = "PART_ScrollContentPresenter", Type = typeof(ScrollContentPresenter))]
147double validatedOffset = ScrollContentPresenter.ValidateInputOffset(offset, "offset");
159double validatedOffset = ScrollContentPresenter.ValidateInputOffset(offset, "offset");
168double validatedOffset = ScrollContentPresenter.ValidateInputOffset(offset, "offset");
177double validatedOffset = ScrollContentPresenter.ValidateInputOffset(offset, "offset");
936ScrollContentPresenter viewPort = GetTemplateChild(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
1017private bool IsInViewport(ScrollContentPresenter scp, DependencyObject element)
1586ScrollContentPresenter viewport = GetTemplateChild(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
1645private bool ShouldManipulateScroll(ManipulationStartingEventArgs e, ScrollContentPresenter viewport)
2254if(isi.GetType() == typeof(System.Windows.Controls.ScrollContentPresenter))
2256rcNew = ((System.Windows.Controls.ScrollContentPresenter)isi).MakeVisible(child, targetRect, false);
2675FrameworkElementFactory content = new FrameworkElementFactory(typeof(ScrollContentPresenter), ScrollContentPresenterTemplateName);
System\Windows\Controls\VirtualizingStackPanel.cs (11)
483double scrollX = ScrollContentPresenter.ValidateInputOffset(offset, "HorizontalOffset");
570_scrollData._offset.X = ScrollContentPresenter.CoerceOffset(scrollX, _scrollData._extent.Width, _scrollData._viewport.Width);
611double scrollY = ScrollContentPresenter.ValidateInputOffset(offset, "VerticalOffset");
698_scrollData._offset.Y = ScrollContentPresenter.CoerceOffset(scrollY, _scrollData._extent.Height, _scrollData._viewport.Height);
1536newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width);
1537newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height);
4992viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X, extent.Width, viewport.Width);
4995viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X - 1, extent.Width, viewport.Width);
5001viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y, extent.Height, viewport.Height);
5004viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y - 1, extent.Height, viewport.Height);
11181minPhysicalOffset = ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(