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)
1588ScrollContentPresenter viewport = GetTemplateChild(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
1647private bool ShouldManipulateScroll(ManipulationStartingEventArgs e, ScrollContentPresenter viewport)
2256if(isi.GetType() == typeof(System.Windows.Controls.ScrollContentPresenter))
2258rcNew = ((System.Windows.Controls.ScrollContentPresenter)isi).MakeVisible(child, targetRect, false);
2679FrameworkElementFactory 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);
1532newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width);
1533newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height);
4990viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X, extent.Width, viewport.Width);
4993viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X - 1, extent.Width, viewport.Width);
4999viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y, extent.Height, viewport.Height);
5002viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y - 1, extent.Height, viewport.Height);
11183minPhysicalOffset = ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(