2 instantiations of ScrollContentPresenter
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8739bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ScrollContentPresenter(); };
System\Windows\Markup\KnownTypes.cs (1)
1521case KnownElements.ScrollContentPresenter: o = new System.Windows.Controls.ScrollContentPresenter(); break;
59 references to ScrollContentPresenter
PresentationFramework (56)
MS\Internal\Documents\TextViewBase.cs (2)
145double minX = System.Windows.Controls.ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(viewport.Left, viewport.Right, rect.Left, rect.Right); 146double minY = System.Windows.Controls.ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(viewport.Top, viewport.Bottom, rect.Top, rect.Bottom);
System\Windows\Controls\DataGrid.cs (4)
1881internal ScrollContentPresenter InternalScrollContentPresenter 1908_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(_internalItemsHost); 1913_internalScrollContentPresenter = DataGridHelper.FindVisualParent<ScrollContentPresenter>(row); 8651private ScrollContentPresenter _internalScrollContentPresenter = null; // Scroll Content Presenter of DataGrid's ScrollViewer
System\Windows\Controls\DataGridCellsPanel.cs (2)
2002ScrollContentPresenter scrollContentPresenter = parentDataGrid.InternalScrollContentPresenter; 2159ScrollContentPresenter scrollContentPresenter = parentDataGrid.InternalScrollContentPresenter;
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1605if(scrollInfo.GetType() == typeof(System.Windows.Controls.ScrollContentPresenter)) 1607result = ((ScrollContentPresenter)scrollInfo).MakeVisible(visual, rectangle, false);
System\Windows\Controls\ItemsControl.cs (2)
2904ScrollContentPresenter scp = viewPort.GetTemplateChild(ScrollViewer.ScrollContentPresenterTemplateName) as ScrollContentPresenter;
System\Windows\Controls\ItemsPresenter.cs (2)
286ScrollContentPresenter scp = VisualTreeHelper.GetParent(this) as ScrollContentPresenter;
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
79ScrollContentPresenter scrollContentPresenter = dataGrid.InternalScrollContentPresenter;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (3)
306typeof(ScrollContentPresenter), 846ScrollContentPresenter scp = (ScrollContentPresenter)d;
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\Stack.cs (5)
203double scrollX = ScrollContentPresenter.ValidateInputOffset(offset, "HorizontalOffset"); 217double scrollY = ScrollContentPresenter.ValidateInputOffset(offset, "VerticalOffset"); 269newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width); 270newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height); 892minPhysicalOffset = ScrollContentPresenter.ComputeScrollOffsetWithMinimalScroll(
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(
System\Windows\Documents\AdornerLayer.cs (2)
318if (parent is ScrollContentPresenter) 319return ((ScrollContentPresenter)parent).AdornerLayer;
System\windows\Documents\TextEditor.cs (1)
1339if (scroller is ScrollViewer || scroller is ScrollContentPresenter)
System\windows\Documents\TextSelection.cs (1)
2461if (element is AdornerDecorator || element is System.Windows.Controls.ScrollContentPresenter)
System\Windows\FrameworkElement.cs (1)
4321if (useLayoutRounding && (this is ScrollContentPresenter || !FrameworkAppContextSwitches.DoNotApplyLayoutRoundingToMarginsAndBorderThickness))
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
643case 549: t = () => typeof(ScrollContentPresenter); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8737typeof(System.Windows.Controls.ScrollContentPresenter),
System\Windows\Markup\KnownTypes.cs (1)
6103case KnownElements.ScrollContentPresenter: t = typeof(System.Windows.Controls.ScrollContentPresenter); break;
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\KeyTipService.cs (3)
1311ScrollContentPresenter lastScp = null; 1321ScrollContentPresenter scp = parent as ScrollContentPresenter;