136 references to Measure
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
120_canvas.Measure(new Size(WidthAndHeightOfGlyph, HeightOfCanvas));
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
113border.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
InlineHints\InlineHintsTag.cs (1)
156block.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
Microsoft.VisualStudio.LanguageServices (5)
PreviewPane\PreviewPane.xaml.cs (5)
75TitleTextBlock.Measure(availableSize: s_infiniteSize); 287HeaderStackPanel.Measure(availableSize: s_infiniteSize); 290TitleTextBlock.Measure(availableSize: s_infiniteSize); 295PreviewDockPanel.Measure(availableSize: new Size( 301TitleTextBlock.Measure(availableSize: new Size(headerStackPanelWidth, double.PositiveInfinity));
PresentationCore (9)
System\Windows\InterOp\HwndSource.cs (4)
1075rootUIElement.Measure(sz); 1107rootUIElement.Measure(sz); 1484rootUIElement.Measure(sz); 1522rootUIElement.Measure(sizeLogicalUnits);
System\Windows\LayoutManager.cs (1)
316currentElement.Measure(currentElement.PreviousConstraint);
System\Windows\Media\BitmapCacheBrush.cs (1)
279element.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Windows\Media\VisualBrush.cs (1)
247element.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Windows\UIElement.cs (2)
852Measure(finalRect.Size); 855Measure(PreviousConstraint);
PresentationFramework (70)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
139((UIElement)_annotationComponent).Measure(childConstraint);
MS\Internal\Controls\InkCanvasInnerCanvas.cs (1)
88child.Measure(childConstraint);
MS\Internal\Controls\TemplatedAdorner.cs (1)
152(_child).Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
MS\Internal\Documents\DocumentGrid.cs (3)
1068background.Measure(constraint); 1090page.Measure(pageSize); 1107page.Measure(newPageSize);
MS\Internal\Documents\DocumentGridPage.cs (1)
250_documentContainer.Measure(availableSize);
MS\Internal\Documents\UIElementIsland.cs (1)
87_child.Measure(availableSize);
MS\Internal\Helper.cs (1)
533child.Measure(constraint);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
309decorator.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity)); 350decorator.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Windows\Controls\AccessText.cs (1)
427TextBlock.Measure(constraint);
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
200child.Measure(desiredSize);
System\Windows\Controls\Border.cs (1)
238child.Measure(childConstraint);
System\Windows\Controls\Canvas.cs (1)
273child.Measure(childConstraint);
System\Windows\Controls\Control.cs (1)
710child.Measure(constraint);
System\Windows\Controls\DataGridCellsPanel.cs (4)
121child.Measure(childMeasureConstraint); 131child.Measure(childMeasureConstraint); 153child.Measure(childMeasureConstraint); 644child.Measure(new Size());
System\Windows\Controls\DataGridHelper.cs (1)
265element.Measure(new Size(constraintWidth, double.PositiveInfinity));
System\Windows\Controls\Decorator.cs (1)
198child.Measure(constraint);
System\Windows\Controls\DockPanel.cs (1)
230child.Measure(childConstraint);
System\Windows\Controls\Grid.cs (2)
379child.Measure(constraint); 1367child.Measure(childConstraint);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (6)
275child.Measure(new Size(childConstraintWidth, constraintHeight)); 286child.Measure(new Size(childConstraintWidth, constraintHeight)); 294child.Measure(new Size(childConstraintWidth, constraintHeight)); 305_paddingHeader.Measure(new Size(0.0, constraintHeight)); 318_indicator.Measure(constraint); 321_floatingHeader.Measure(constraint);
System\Windows\Controls\GridViewRowPresenter.cs (3)
161child.Measure(new Size(childConstraintWidth, constraintHeight)); 179child.Measure(new Size(childConstraintWidth, constraintHeight)); 187child.Measure(new Size(childConstraintWidth, constraintHeight));
System\Windows\Controls\InkCanvas.cs (1)
228_localAdornerDecorator.Measure(availableSize);
System\Windows\Controls\Page.cs (1)
601child.Measure(constraint);
System\Windows\Controls\Primitives\BulletDecorator.cs (2)
250bullet.Measure(constraint); 260content.Measure(contentConstraint);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
120_columnHeaderDragIndicator.Measure(childConstraint); 128_columnHeaderDropLocationIndicator.Measure(availableSize);
System\Windows\Controls\Primitives\PopupRoot.cs (3)
155_transformDecorator.Measure(desiredSize); 201_transformDecorator.Measure(restricted1DDesiredSize); 237_transformDecorator.Measure(restrictedSize);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
422_adornerLayer.Measure(constraint);
System\Windows\Controls\Primitives\TabPanel.cs (2)
112child.Measure(constraint); 156child.Measure(constraint);
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
112child.Measure(constraint);
System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
93child.Measure(constraint); 171child.Measure(constraint);
System\Windows\Controls\Primitives\Track.cs (1)
435Thumb.Measure(availableSize);
System\Windows\Controls\Primitives\UniformGrid.cs (1)
184child.Measure(childConstraint);
System\Windows\Controls\ScrollViewer.cs (3)
1193child.Measure(constraint); 1237child.Measure(constraint); 1281child.Measure(constraint);
System\Windows\Controls\Stack.cs (1)
597child.Measure(layoutSlotSize);
System\Windows\Controls\TextBlock.cs (1)
1980inlineObject.Element.Measure(contentSize);
System\Windows\Controls\ToolBarTray.cs (1)
388toolBar.Measure(childConstraint);
System\Windows\Controls\ViewBox.cs (1)
320child.Measure(infinteConstraint);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
8272child.Measure(childConstraint);
System\Windows\Controls\WrapPanel.cs (1)
243child.Measure(childConstraint);
System\Windows\Documents\Adorner.cs (1)
82ch.Measure(desiredSize);
System\Windows\Documents\AdornerDecorator.cs (1)
130_adornerLayer.Measure(constraint);
System\Windows\Documents\AdornerLayer.cs (1)
430adornerInfo.Adorner.Measure(constraint);
System\Windows\Documents\DocumentSequence.cs (1)
1144e.Measure(base.Size);
System\Windows\Documents\FixedDocument.cs (2)
355page.Measure(fixedSize); 1423e.Measure(base.Size);
System\Windows\Documents\FixedPage.cs (1)
751child.Measure(childConstraint);
System\Windows\Documents\FixedTextBuilder.cs (1)
201page.Measure(pageSize);
System\Windows\Input\KeyboardNavigation.cs (1)
556((UIElement)GetVisualChild(0)).Measure(constraint);
System\Windows\Window.cs (1)
3445child.Measure(childConstraint);
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
419child.Measure(childConstraint);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
240child.Measure(childConstraint);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201child.Measure(new Size(childWidth, childHeight));
PresentationFramework.Aero2 (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
419child.Measure(childConstraint);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
240child.Measure(childConstraint);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201child.Measure(new Size(childWidth, childHeight));
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201child.Measure(new Size(childWidth, childHeight));
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (1)
677child.Measure(childConstraint);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201child.Measure(new Size(childWidth, childHeight));
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
334child.Measure(childConstraint);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201child.Measure(new Size(childWidth, childHeight));
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
292child.Measure(childConstraint);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201child.Measure(new Size(childWidth, childHeight));
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2533canvas.Measure(size);
ReachFramework (2)
AlphaFlattener\Utility.cs (1)
1590uiElement.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
Serialization\Manager\ReachSerializationUtils.cs (1)
1166uiElement.Measure(newSize);
System.Windows.Controls.Ribbon (32)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
75_keyTipControl.Measure(childConstraint);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (2)
61tabGroupHeader.Measure(new Size(double.PositiveInfinity, availableSize.Height)); 84tabGroupHeader.Measure(new Size(width , availableSize.Height));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (2)
390child.Measure(childConstraint); 464child.Measure(layoutSlotSize);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (1)
344child.Measure(childConstraint);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (3)
187children[starChildIndex].Measure(new Size(starLayoutInfo.RequestedStarMinWidth, constraint.Height)); 211child.Measure(availableSize); 286child.Measure(new Size(starLayoutInfo.AllocatedStarWidth, availableSize.Height));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
174starLayoutTarget.Measure(new Size(maxChildWidth, availableHeight));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (1)
33child.Measure(infinity);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
209generatedChild.Measure(infinity);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (5)
135ribbonTabHeader.Measure(new Size(Double.MaxValue, childConstraint.Height)); 397ribbonTabHeader.Measure(constraint); 414child.Measure(constraint); 451ribbonTabHeader.Measure(new Size(isContextualTab ? maxContextualTabHeaderWidth : maxRegularTabHeaderWidth, constraint.Height)); 463child.Measure(new Size(maxRegularTabHeaderWidth, constraint.Height));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
44children[i].Measure(availableSize);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (5)
74groupHeaderItemsControl.Measure(availableSize); 90groupHeaderItemsControl.Measure(new Size(Math.Max(endContextualTabX - startContextualTabX, 0), availableSize.Height)); 130qat.Measure(new Size(availableToQat, availableSize.Height)); 144titleHost.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)); 160titleHost.Measure(new Size(availableToTitle, availableSize.Height));
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1326Popup.Child.Measure(new Size());
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
857_itemsPresenter.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)); 1133Measure(DesiredSize); 1146Measure(DesiredSize); 1272_templateContentControl.Measure(_templateContentControl.DesiredSize);
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (4)
350_textBlock1.Measure(availableSize); 389_textBlock1.Measure(infinity); 399_textBlock1.Measure(infinity); 427_textBlock1.Measure(infinity);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
116_decorator.Measure(constraints);