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