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)
112border.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)
76TitleTextBlock.Measure(availableSize: s_infiniteSize); 288HeaderStackPanel.Measure(availableSize: s_infiniteSize); 291TitleTextBlock.Measure(availableSize: s_infiniteSize); 296PreviewDockPanel.Measure(availableSize: new Size( 302TitleTextBlock.Measure(availableSize: new Size(headerStackPanelWidth, double.PositiveInfinity));
PresentationCore (9)
System\Windows\InterOp\HwndSource.cs (4)
1057rootUIElement.Measure(sz); 1089rootUIElement.Measure(sz); 1466rootUIElement.Measure(sz); 1504rootUIElement.Measure(sizeLogicalUnits);
System\Windows\LayoutManager.cs (1)
299currentElement.Measure(currentElement.PreviousConstraint);
System\Windows\Media\BitmapCacheBrush.cs (1)
264element.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Windows\Media\VisualBrush.cs (1)
231element.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Windows\UIElement.cs (2)
842Measure(finalRect.Size); 845Measure(PreviousConstraint);
PresentationFramework (70)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
135((UIElement)_annotationComponent).Measure(childConstraint);
MS\Internal\Controls\InkCanvasInnerCanvas.cs (1)
84child.Measure(childConstraint);
MS\Internal\Controls\TemplatedAdorner.cs (1)
145(_child).Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
MS\Internal\Documents\DocumentGrid.cs (3)
1060background.Measure(constraint); 1082page.Measure(pageSize); 1099page.Measure(newPageSize);
MS\Internal\Documents\DocumentGridPage.cs (1)
236_documentContainer.Measure(availableSize);
MS\Internal\Documents\UIElementIsland.cs (1)
84_child.Measure(availableSize);
MS\Internal\Helper.cs (1)
523child.Measure(constraint);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
307decorator.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity)); 348decorator.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Windows\Controls\AccessText.cs (1)
424TextBlock.Measure(constraint);
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
191child?.Measure(desiredSize);
System\Windows\Controls\Border.cs (1)
233child.Measure(childConstraint);
System\Windows\Controls\Canvas.cs (1)
262child.Measure(childConstraint);
System\Windows\Controls\Control.cs (1)
697child.Measure(constraint);
System\Windows\Controls\DataGridCellsPanel.cs (4)
115child.Measure(childMeasureConstraint); 125child.Measure(childMeasureConstraint); 147child.Measure(childMeasureConstraint); 638child.Measure(new Size());
System\Windows\Controls\DataGridHelper.cs (1)
258element.Measure(new Size(constraintWidth, double.PositiveInfinity));
System\Windows\Controls\Decorator.cs (1)
192child.Measure(constraint);
System\Windows\Controls\DockPanel.cs (1)
220child.Measure(childConstraint);
System\Windows\Controls\Grid.cs (2)
367child.Measure(constraint); 1350child.Measure(childConstraint);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (6)
271child.Measure(new Size(childConstraintWidth, constraintHeight)); 282child.Measure(new Size(childConstraintWidth, constraintHeight)); 290child.Measure(new Size(childConstraintWidth, constraintHeight)); 301_paddingHeader.Measure(new Size(0.0, constraintHeight)); 314_indicator.Measure(constraint); 317_floatingHeader.Measure(constraint);
System\Windows\Controls\GridViewRowPresenter.cs (3)
156child.Measure(new Size(childConstraintWidth, constraintHeight)); 174child.Measure(new Size(childConstraintWidth, constraintHeight)); 182child.Measure(new Size(childConstraintWidth, constraintHeight));
System\Windows\Controls\InkCanvas.cs (1)
225_localAdornerDecorator.Measure(availableSize);
System\Windows\Controls\Page.cs (1)
580child.Measure(constraint);
System\Windows\Controls\Primitives\BulletDecorator.cs (2)
243bullet.Measure(constraint); 253content.Measure(contentConstraint);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
114_columnHeaderDragIndicator.Measure(childConstraint); 122_columnHeaderDropLocationIndicator.Measure(availableSize);
System\Windows\Controls\Primitives\PopupRoot.cs (3)
145_transformDecorator.Measure(desiredSize); 191_transformDecorator.Measure(restricted1DDesiredSize); 227_transformDecorator.Measure(restrictedSize);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
411_adornerLayer.Measure(constraint);
System\Windows\Controls\Primitives\TabPanel.cs (2)
103child.Measure(constraint); 147child.Measure(constraint);
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
101child.Measure(constraint);
System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
83child.Measure(constraint); 161child.Measure(constraint);
System\Windows\Controls\Primitives\Track.cs (1)
415Thumb.Measure(availableSize);
System\Windows\Controls\Primitives\UniformGrid.cs (1)
175child.Measure(childConstraint);
System\Windows\Controls\ScrollViewer.cs (3)
1184child.Measure(constraint); 1228child.Measure(constraint); 1272child.Measure(constraint);
System\Windows\Controls\Stack.cs (1)
586child.Measure(layoutSlotSize);
System\Windows\Controls\TextBlock.cs (1)
1958inlineObject.Element.Measure(contentSize);
System\Windows\Controls\ToolBarTray.cs (1)
379toolBar.Measure(childConstraint);
System\Windows\Controls\ViewBox.cs (1)
313child.Measure(infinteConstraint);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
8245child.Measure(childConstraint);
System\Windows\Controls\WrapPanel.cs (1)
232child.Measure(childConstraint);
System\Windows\Documents\Adorner.cs (1)
76ch?.Measure(desiredSize);
System\Windows\Documents\AdornerDecorator.cs (1)
125_adornerLayer.Measure(constraint);
System\Windows\Documents\AdornerLayer.cs (1)
425adornerInfo.Adorner.Measure(constraint);
System\Windows\Documents\DocumentSequence.cs (1)
1127e.Measure(base.Size);
System\Windows\Documents\FixedDocument.cs (2)
343page.Measure(fixedSize); 1410e.Measure(base.Size);
System\Windows\Documents\FixedPage.cs (1)
744child.Measure(childConstraint);
System\Windows\Documents\FixedTextBuilder.cs (1)
194page.Measure(pageSize);
System\Windows\Input\KeyboardNavigation.cs (1)
547((UIElement)GetVisualChild(0)).Measure(constraint);
System\Windows\Window.cs (1)
3419child.Measure(childConstraint);
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
419child.Measure(childConstraint);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
235child.Measure(childConstraint);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
200child.Measure(new Size(childWidth, childHeight));
PresentationFramework.Aero2 (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
419child.Measure(childConstraint);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
235child.Measure(childConstraint);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
200child.Measure(new Size(childWidth, childHeight));
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
200child.Measure(new Size(childWidth, childHeight));
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (1)
675child.Measure(childConstraint);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
200child.Measure(new Size(childWidth, childHeight));
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
330child.Measure(childConstraint);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
200child.Measure(new Size(childWidth, childHeight));
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
288child.Measure(childConstraint);
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
200child.Measure(new Size(childWidth, childHeight));
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2525canvas.Measure(size);
ReachFramework (2)
AlphaFlattener\Utility.cs (1)
1579uiElement.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
Serialization\Manager\ReachSerializationUtils.cs (1)
1150uiElement.Measure(newSize);
System.Windows.Controls.Ribbon (32)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
71_keyTipControl.Measure(childConstraint);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (2)
55tabGroupHeader.Measure(new Size(double.PositiveInfinity, availableSize.Height)); 78tabGroupHeader.Measure(new Size(width , availableSize.Height));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (2)
384child.Measure(childConstraint); 458child.Measure(layoutSlotSize);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (1)
338child.Measure(childConstraint);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (3)
184children[starChildIndex].Measure(new Size(starLayoutInfo.RequestedStarMinWidth, constraint.Height)); 208child.Measure(availableSize); 283child.Measure(new Size(starLayoutInfo.AllocatedStarWidth, availableSize.Height));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
169starLayoutTarget.Measure(new Size(maxChildWidth, availableHeight));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (1)
28child.Measure(infinity);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
202generatedChild.Measure(infinity);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (5)
131ribbonTabHeader.Measure(new Size(Double.MaxValue, childConstraint.Height)); 393ribbonTabHeader.Measure(constraint); 410child.Measure(constraint); 447ribbonTabHeader.Measure(new Size(isContextualTab ? maxContextualTabHeaderWidth : maxRegularTabHeaderWidth, constraint.Height)); 459child.Measure(new Size(maxRegularTabHeaderWidth, constraint.Height));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
39children[i].Measure(availableSize);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (5)
69groupHeaderItemsControl.Measure(availableSize); 85groupHeaderItemsControl.Measure(new Size(Math.Max(endContextualTabX - startContextualTabX, 0), availableSize.Height)); 125qat.Measure(new Size(availableToQat, availableSize.Height)); 139titleHost.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)); 155titleHost.Measure(new Size(availableToTitle, availableSize.Height));
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1323Popup.Child.Measure(new Size());
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
847_itemsPresenter.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)); 1120Measure(DesiredSize); 1133Measure(DesiredSize); 1259_templateContentControl.Measure(_templateContentControl.DesiredSize);
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (4)
346_textBlock1.Measure(availableSize); 385_textBlock1.Measure(infinity); 395_textBlock1.Measure(infinity); 423_textBlock1.Measure(infinity);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
112_decorator.Measure(constraints);