2 instantiations of ScrollContentPresenter
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8737bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ScrollContentPresenter(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1522case KnownElements.ScrollContentPresenter: o = new System.Windows.Controls.ScrollContentPresenter(); break;
56 references to ScrollContentPresenter
PresentationFramework (56)
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
149double minX = System.Windows.Controls.ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(viewport.Left, viewport.Right, rect.Left, rect.Right); 150double minY = System.Windows.Controls.ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(viewport.Top, viewport.Bottom, rect.Top, rect.Bottom);
src\Framework\System\Windows\Controls\DataGrid.cs (4)
1888internal ScrollContentPresenter InternalScrollContentPresenter 1915_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(_internalItemsHost); 1920_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(row); 8681private ScrollContentPresenter _internalScrollContentPresenter = null; // Scroll Content Presenter of DataGrid's ScrollViewer
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (2)
2008ScrollContentPresenter scrollContentPresenter = parentDataGrid.InternalScrollContentPresenter; 2167ScrollContentPresenter scrollContentPresenter = parentDataGrid.InternalScrollContentPresenter;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1616if(scrollInfo.GetType() == typeof(System.Windows.Controls.ScrollContentPresenter)) 1618result = ((ScrollContentPresenter)scrollInfo).MakeVisible(visual, rectangle, false);
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
2916ScrollContentPresenter scp = viewPort.GetTemplateChild(ScrollViewer.ScrollContentPresenterTemplateName) as ScrollContentPresenter;
src\Framework\System\Windows\Controls\ItemsPresenter.cs (2)
292ScrollContentPresenter scp = VisualTreeHelper.GetParent(this) as ScrollContentPresenter;
src\Framework\System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
90ScrollContentPresenter scrollContentPresenter = dataGrid.InternalScrollContentPresenter;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (3)
322typeof(ScrollContentPresenter), 862ScrollContentPresenter scp = (ScrollContentPresenter)d;
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\Stack.cs (5)
215double scrollX = ScrollContentPresenter.ValidateInputOffset(offset, "HorizontalOffset"); 229double scrollY = ScrollContentPresenter.ValidateInputOffset(offset, "VerticalOffset"); 281newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width); 282newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height); 904minPhysicalOffset = ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(
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(
src\Framework\System\Windows\Documents\AdornerLayer.cs (2)
335if (parent is ScrollContentPresenter) 336return ((ScrollContentPresenter)parent).AdornerLayer;
src\Framework\System\windows\Documents\TextEditor.cs (1)
1372if (scroller is ScrollViewer || scroller is ScrollContentPresenter)
src\Framework\System\windows\Documents\TextSelection.cs (1)
2472if (element is AdornerDecorator || element is System.Windows.Controls.ScrollContentPresenter)
src\Framework\System\Windows\FrameworkElement.cs (1)
4331if (useLayoutRounding && (this is ScrollContentPresenter || !FrameworkAppContextSwitches.DoNotApplyLayoutRoundingToMarginsAndBorderThickness))
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
641case 549: t = () => typeof(ScrollContentPresenter); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8735typeof(System.Windows.Controls.ScrollContentPresenter),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6093case KnownElements.ScrollContentPresenter: t = typeof(System.Windows.Controls.ScrollContentPresenter); break;