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)
1052rootUIElement.Measure(sz); 1084rootUIElement.Measure(sz); 1461rootUIElement.Measure(sz); 1499rootUIElement.Measure(sizeLogicalUnits);
System\Windows\LayoutManager.cs (1)
300currentElement.Measure(currentElement.PreviousConstraint);
System\Windows\Media\BitmapCacheBrush.cs (1)
271element.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Windows\Media\VisualBrush.cs (1)
238element.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Windows\UIElement.cs (2)
847Measure(finalRect.Size); 850Measure(PreviousConstraint);
PresentationFramework (70)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
136((UIElement)_annotationComponent).Measure(childConstraint);
MS\Internal\Controls\InkCanvasInnerCanvas.cs (1)
85child.Measure(childConstraint);
MS\Internal\Controls\TemplatedAdorner.cs (1)
145(_child).Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
MS\Internal\Documents\DocumentGrid.cs (3)
1061background.Measure(constraint); 1083page.Measure(pageSize); 1100page.Measure(newPageSize);
MS\Internal\Documents\DocumentGridPage.cs (1)
237_documentContainer.Measure(availableSize);
MS\Internal\Documents\UIElementIsland.cs (1)
85_child.Measure(availableSize);
MS\Internal\Helper.cs (1)
524child.Measure(constraint);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
304decorator.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity)); 345decorator.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Windows\Controls\AccessText.cs (1)
425TextBlock.Measure(constraint);
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
193child.Measure(desiredSize);
System\Windows\Controls\Border.cs (1)
234child.Measure(childConstraint);
System\Windows\Controls\Canvas.cs (1)
264child.Measure(childConstraint);
System\Windows\Controls\Control.cs (1)
701child.Measure(constraint);
System\Windows\Controls\DataGridCellsPanel.cs (4)
117child.Measure(childMeasureConstraint); 127child.Measure(childMeasureConstraint); 149child.Measure(childMeasureConstraint); 640child.Measure(new Size());
System\Windows\Controls\DataGridHelper.cs (1)
259element.Measure(new Size(constraintWidth, double.PositiveInfinity));
System\Windows\Controls\Decorator.cs (1)
193child.Measure(constraint);
System\Windows\Controls\DockPanel.cs (1)
224child.Measure(childConstraint);
System\Windows\Controls\Grid.cs (2)
370child.Measure(constraint); 1358child.Measure(childConstraint);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (6)
272child.Measure(new Size(childConstraintWidth, constraintHeight)); 283child.Measure(new Size(childConstraintWidth, constraintHeight)); 291child.Measure(new Size(childConstraintWidth, constraintHeight)); 302_paddingHeader.Measure(new Size(0.0, constraintHeight)); 315_indicator.Measure(constraint); 318_floatingHeader.Measure(constraint);
System\Windows\Controls\GridViewRowPresenter.cs (3)
157child.Measure(new Size(childConstraintWidth, constraintHeight)); 175child.Measure(new Size(childConstraintWidth, constraintHeight)); 183child.Measure(new Size(childConstraintWidth, constraintHeight));
System\Windows\Controls\InkCanvas.cs (1)
216_localAdornerDecorator.Measure(availableSize);
System\Windows\Controls\Page.cs (1)
594child.Measure(constraint);
System\Windows\Controls\Primitives\BulletDecorator.cs (2)
244bullet.Measure(constraint); 254content.Measure(contentConstraint);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
115_columnHeaderDragIndicator.Measure(childConstraint); 123_columnHeaderDropLocationIndicator.Measure(availableSize);
System\Windows\Controls\Primitives\PopupRoot.cs (3)
146_transformDecorator.Measure(desiredSize); 192_transformDecorator.Measure(restricted1DDesiredSize); 228_transformDecorator.Measure(restrictedSize);
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
412_adornerLayer.Measure(constraint);
System\Windows\Controls\Primitives\TabPanel.cs (2)
104child.Measure(constraint); 148child.Measure(constraint);
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
102child.Measure(constraint);
System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
84child.Measure(constraint); 162child.Measure(constraint);
System\Windows\Controls\Primitives\Track.cs (1)
424Thumb.Measure(availableSize);
System\Windows\Controls\Primitives\UniformGrid.cs (1)
176child.Measure(childConstraint);
System\Windows\Controls\ScrollViewer.cs (3)
1185child.Measure(constraint); 1229child.Measure(constraint); 1273child.Measure(constraint);
System\Windows\Controls\Stack.cs (1)
591child.Measure(layoutSlotSize);
System\Windows\Controls\TextBlock.cs (1)
1970inlineObject.Element.Measure(contentSize);
System\Windows\Controls\ToolBarTray.cs (1)
380toolBar.Measure(childConstraint);
System\Windows\Controls\ViewBox.cs (1)
314child.Measure(infinteConstraint);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
8267child.Measure(childConstraint);
System\Windows\Controls\WrapPanel.cs (1)
233child.Measure(childConstraint);
System\Windows\Documents\Adorner.cs (1)
79ch.Measure(desiredSize);
System\Windows\Documents\AdornerDecorator.cs (1)
126_adornerLayer.Measure(constraint);
System\Windows\Documents\AdornerLayer.cs (1)
426adornerInfo.Adorner.Measure(constraint);
System\Windows\Documents\DocumentSequence.cs (1)
1140e.Measure(base.Size);
System\Windows\Documents\FixedDocument.cs (2)
344page.Measure(fixedSize); 1412e.Measure(base.Size);
System\Windows\Documents\FixedPage.cs (1)
743child.Measure(childConstraint);
System\Windows\Documents\FixedTextBuilder.cs (1)
195page.Measure(pageSize);
System\Windows\Input\KeyboardNavigation.cs (1)
546((UIElement)GetVisualChild(0)).Measure(constraint);
System\Windows\Window.cs (1)
3432child.Measure(childConstraint);
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
410child.Measure(childConstraint);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
234child.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)
410child.Measure(childConstraint);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
234child.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)
674child.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)
331child.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)
289child.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)
2526canvas.Measure(size);
ReachFramework (2)
AlphaFlattener\Utility.cs (1)
1579uiElement.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
Serialization\Manager\ReachSerializationUtils.cs (1)
1156uiElement.Measure(newSize);
System.Windows.Controls.Ribbon (32)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
72_keyTipControl.Measure(childConstraint);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (2)
56tabGroupHeader.Measure(new Size(double.PositiveInfinity, availableSize.Height)); 79tabGroupHeader.Measure(new Size(width , availableSize.Height));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (2)
385child.Measure(childConstraint); 459child.Measure(layoutSlotSize);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (1)
339child.Measure(childConstraint);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (3)
185children[starChildIndex].Measure(new Size(starLayoutInfo.RequestedStarMinWidth, constraint.Height)); 209child.Measure(availableSize); 284child.Measure(new Size(starLayoutInfo.AllocatedStarWidth, availableSize.Height));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
170starLayoutTarget.Measure(new Size(maxChildWidth, availableHeight));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (1)
29child.Measure(infinity);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
203generatedChild.Measure(infinity);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (5)
132ribbonTabHeader.Measure(new Size(Double.MaxValue, childConstraint.Height)); 394ribbonTabHeader.Measure(constraint); 411child.Measure(constraint); 448ribbonTabHeader.Measure(new Size(isContextualTab ? maxContextualTabHeaderWidth : maxRegularTabHeaderWidth, constraint.Height)); 460child.Measure(new Size(maxRegularTabHeaderWidth, constraint.Height));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
40children[i].Measure(availableSize);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (5)
70groupHeaderItemsControl.Measure(availableSize); 86groupHeaderItemsControl.Measure(new Size(Math.Max(endContextualTabX - startContextualTabX, 0), availableSize.Height)); 126qat.Measure(new Size(availableToQat, availableSize.Height)); 140titleHost.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)); 156titleHost.Measure(new Size(availableToTitle, availableSize.Height));
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1324Popup.Child.Measure(new Size());
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
854_itemsPresenter.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)); 1130Measure(DesiredSize); 1143Measure(DesiredSize); 1269_templateContentControl.Measure(_templateContentControl.DesiredSize);
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (4)
347_textBlock1.Measure(availableSize); 386_textBlock1.Measure(infinity); 396_textBlock1.Measure(infinity); 424_textBlock1.Measure(infinity);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
113_decorator.Measure(constraints);