286 references to DesiredSize
Microsoft.CodeAnalysis.EditorFeatures.Wpf (4)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
131Canvas.SetLeft(border, view.ViewportRight - border.DesiredSize.Width);
InlineHints\InlineHintsTag.cs (1)
189Height = dockPanelHeight + (block.DesiredSize.Height - (block.FontFamily.Baseline * block.FontSize)),
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (2)
136var height = DesiredSize.Height; 137var width = DesiredSize.Width;
Microsoft.VisualStudio.LanguageServices (5)
PreviewPane\PreviewPane.xaml.cs (5)
76_heightForThreeLineTitle = TitleTextBlock.DesiredSize.Height; 288headerStackPanelWidth = HeaderStackPanel.DesiredSize.Width; 291titleTextBlockHeight = TitleTextBlock.DesiredSize.Height; 298headerStackPanelWidth = PreviewDockPanel.DesiredSize.Width; 302titleTextBlockHeight = TitleTextBlock.DesiredSize.Height;
PresentationCore (9)
System\Windows\InterOp\HwndSource.cs (5)
1060rootUIElement.Arrange(new Rect(new Point(), rootUIElement.DesiredSize)); 1092if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, sizeFromHwndLogicalUnits.Height); 1093else if(_sizeToContent == SizeToContent.Height) sz = new Size(sizeFromHwndLogicalUnits.Width, rootUIElement.DesiredSize.Height); 1463if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, relevantPt.Y); 1464else if (_sizeToContent == SizeToContent.Height) sz = new Size(relevantPt.X, rootUIElement.DesiredSize.Height);
System\Windows\LayoutManager.cs (2)
467arrangeRect.Width = element.DesiredSize.Width; 470arrangeRect.Height = element.DesiredSize.Height;
System\Windows\Media\BitmapCacheBrush.cs (1)
272element.Arrange(new Rect(element.DesiredSize));
System\Windows\Media\VisualBrush.cs (1)
239element.Arrange(new Rect(element.DesiredSize));
PresentationFramework (168)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
149((UIElement)_annotationComponent).Arrange(new Rect(((UIElement)_annotationComponent).DesiredSize));
MS\Internal\Controls\InkCanvasInnerCanvas.cs (7)
94newSize.Width = Math.Max(newSize.Width, left + child.DesiredSize.Width); 98newSize.Width = Math.Max(newSize.Width, child.DesiredSize.Width); 104newSize.Height = Math.Max(newSize.Height, top + child.DesiredSize.Height); 108newSize.Height = Math.Max(newSize.Height, child.DesiredSize.Height); 153x = arrangeSize.Width - child.DesiredSize.Width - right; 168y = arrangeSize.Height - child.DesiredSize.Height - bottom; 172child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
MS\Internal\Controls\TemplatedAdorner.cs (3)
139!DoubleUtil.AreClose(ReferenceElement.DesiredSize, AdornedElement.DesiredSize) 147return (_child).DesiredSize;
MS\Internal\Documents\FlowDocumentView.cs (1)
68desiredSize = this.DesiredSize;
MS\Internal\Documents\UIElementIsland.cs (2)
88islandSize.Width = horizontalAutoSize ? _child.DesiredSize.Width : availableSize.Width; 89islandSize.Height = verticalAutoSize ? _child.DesiredSize.Height : availableSize.Height;
MS\Internal\Helper.cs (6)
525return child.DesiredSize; 1076headerSize.Height = Math.Max(virtualizingElement.DesiredSize.Height, headerSize.Height); 1078headerSize.Width = Math.Max(virtualizingElement.DesiredSize.Width, headerSize.Width); 1101Size desiredSize = virtualizingElement.DesiredSize; 1170Rect parentRect = new Rect(new Point(), virtualizingElement.DesiredSize); 1179Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.DesiredSize));
MS\Internal\LayoutDump.cs (2)
245DumpSize(writer, "DesiredSize", element.DesiredSize); 545if (DoubleUtil.AreClose(extent, element.DesiredSize))
MS\Internal\PtsHost\Line.cs (2)
369desiredSize = inlineObject.UIElementIsland.Root.DesiredSize; 427if (!line.HasCollapsed || ((rect.Left + inlineObject.UIElementIsland.Root.DesiredSize.Width) < line.Width))
MS\Internal\PtsHost\PtsHost.cs (2)
2527dvrSumHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height); 2528dvrMinHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height);
MS\Internal\PtsHost\RunClient.cs (1)
78Size size = UIElementIsland.Root.DesiredSize;
MS\Internal\PtsHost\TextParaClient.cs (2)
1271uiElement.Arrange(new Rect(uiElement.DesiredSize)); 1304uiElement.Arrange(new Rect(uiElement.DesiredSize));
MS\Internal\Text\ComplexLine.cs (1)
212inlineObject.Element.Arrange(new Rect(inlineObject.Element.DesiredSize));
MS\Internal\Text\InlineObject.cs (1)
72Size size = _element.DesiredSize;
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
305decorator.Arrange(new Rect(decorator.DesiredSize)); 346decorator.Arrange(new Rect(decorator.DesiredSize));
System\Windows\Controls\AccessText.cs (1)
426return TextBlock.DesiredSize;
System\Windows\Controls\Border.cs (1)
235Size childSize = child.DesiredSize;
System\Windows\Controls\Canvas.cs (3)
307x = arrangeSize.Width - child.DesiredSize.Width - right; 322y = arrangeSize.Height - child.DesiredSize.Height - bottom; 326child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
System\Windows\Controls\Control.cs (1)
702return child.DesiredSize;
System\Windows\Controls\DataGridCellsPanel.cs (5)
79if (!DoubleUtil.AreClose(this.DesiredSize, measureSize) && MeasureDuringArrange) 118desiredWidth = child.DesiredSize.Width; 130Size childDesiredSize = child.DesiredSize; 573childSize = child.DesiredSize; 1480childWidth = child.DesiredSize.Width;
System\Windows\Controls\DataGridHelper.cs (2)
256if (!DoubleUtil.AreClose(element.DesiredSize.Width, constraintWidth)) 262desiredWidth = element.DesiredSize.Width;
System\Windows\Controls\DataGridRow.cs (1)
549double minHeight = Math.Max(RowHeader.DesiredSize.Height, MinHeight);
System\Windows\Controls\Decorator.cs (1)
194return (child.DesiredSize);
System\Windows\Controls\DockPanel.cs (2)
225childDesiredSize = child.DesiredSize; 281Size childDesiredSize = child.DesiredSize;
System\Windows\Controls\Grid.cs (8)
371gridDesiredSize.Width = Math.Max(gridDesiredSize.Width, child.DesiredSize.Width); 372gridDesiredSize.Height = Math.Max(gridDesiredSize.Height, child.DesiredSize.Height); 1211double oldWidth = children[i].DesiredSize.Width; 1215hasDesiredSizeUChanged |= !DoubleUtil.AreClose(oldWidth, children[i].DesiredSize.Width); 1221DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize)); 1230children[i].DesiredSize.Width); 1238DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize)); 1247children[i].DesiredSize.Height);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
274DesiredWidthList[column.ActualIndex] = column.EnsureWidth(child.DesiredSize.Width); 296maxHeight = Math.Max(maxHeight, child.DesiredSize.Height); 303maxHeight = Math.Max(maxHeight, _paddingHeader.DesiredSize.Height); 396_indicator.Arrange(new Rect(pos, new Size(_indicator.DesiredSize.Width, arrangeSize.Height)));
System\Windows\Controls\GridViewRowPresenter.cs (2)
164column.EnsureWidth(child.DesiredSize.Width); 188maxHeight = Math.Max(maxHeight, child.DesiredSize.Height);
System\Windows\Controls\GroupItem.cs (1)
289pixelHeaderSize = headerElement.DesiredSize;
System\Windows\Controls\InkCanvas.cs (1)
218return _localAdornerDecorator.DesiredSize;
System\Windows\Controls\Page.cs (1)
595return child.DesiredSize;
System\Windows\Controls\Primitives\BulletDecorator.cs (8)
245bulletSize = bullet.DesiredSize; 255contentSize = content.DesiredSize; 280bullet.Arrange(new Rect(bullet.DesiredSize)); 294contentSize.Width = Math.Max(content.DesiredSize.Width, arrangeSize.Width - bullet.DesiredSize.Width); 295contentSize.Height = Math.Max(content.DesiredSize.Height, arrangeSize.Height); 306bullet.Arrange(new Rect(0, bulletOffsetY, bullet.DesiredSize.Width, bullet.DesiredSize.Height));
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
116indicatorSize = _columnHeaderDragIndicator.DesiredSize; 124indicatorSize = _columnHeaderDropLocationIndicator.DesiredSize;
System\Windows\Controls\Primitives\DocumentPageView.cs (3)
225desiredSize = this.DesiredSize; 607_visualCloneSize = this.DesiredSize; 628_visualCloneSize = this.DesiredSize;
System\Windows\Controls\Primitives\PopupRoot.cs (3)
168desiredSize = _transformDecorator.DesiredSize; 193desiredSize = _transformDecorator.DesiredSize; 229Size restricted2DDesiredSize = _transformDecorator.DesiredSize;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
475Rect childRect = new Rect(child.DesiredSize);
System\Windows\Controls\Primitives\TabPanel.cs (2)
204desiredSizeWithoutMargin.Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom); 205desiredSizeWithoutMargin.Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right);
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
104Size childDesiredSize = child.DesiredSize; 117Size sz = child.DesiredSize; 161Size sz = children[i].DesiredSize; 203child.Arrange(new Rect(x, y, child.DesiredSize.Width, lineHeight)); 204x += child.DesiredSize.Width;
System\Windows\Controls\Primitives\ToolBarPanel.cs (6)
85Size childDesiredSize = child.DesiredSize; 171Size childDesiredSize = child.DesiredSize; 302previousChildSize = child.DesiredSize.Width; 304rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 309previousChildSize = child.DesiredSize.Height; 311rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width);
System\Windows\Controls\Primitives\Track.cs (3)
425desiredSize = Thumb.DesiredSize; 579thumbLength = Thumb == null ? 0 : Thumb.DesiredSize.Height; 584thumbLength = Thumb == null ? 0 : Thumb.DesiredSize.Width;
System\Windows\Controls\Primitives\UniformGrid.cs (1)
177Size childDesiredSize = child.DesiredSize;
System\Windows\Controls\ScrollViewer.cs (1)
1292desiredSize = child.DesiredSize;
System\Windows\Controls\Stack.cs (13)
592Size childDesiredSize = child.DesiredSize; 639if (fHorizontal) { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Width; } 640else { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Height; } 753previousChildSize = child.DesiredSize.Width; 755rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 760previousChildSize = child.DesiredSize.Height; 762rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width); 838? ((UIElement)children[i]).DesiredSize.Width 839: ((UIElement)children[i]).DesiredSize.Height; 944Size childDesiredSize = InternalChildren[childIndex].DesiredSize; 951childDesiredSize = InternalChildren[i].DesiredSize; 970newRect.Width = InternalChildren[childIndex].DesiredSize.Width; 976newRect.Height = InternalChildren[childIndex].DesiredSize.Height;
System\Windows\Controls\TextBlock.cs (2)
1971desiredSize = inlineObject.Element.DesiredSize; 2000desiredSize = inlineObject.Element.DesiredSize;
System\Windows\Controls\ToolBar.cs (2)
549extraLength = Math.Max(0.0, desiredSize.Width - toolBarPanel.DesiredSize.Width + margin.Left + margin.Right); 553extraLength = Math.Max(0.0, desiredSize.Height - toolBarPanel.DesiredSize.Height + margin.Top + margin.Bottom);
System\Windows\Controls\ToolBarTray.cs (8)
381bandThickness = Math.Max(bandThickness, fHorizontal ? toolBar.DesiredSize.Height : toolBar.DesiredSize.Width); 382bandLength += fHorizontal ? toolBar.DesiredSize.Width : toolBar.DesiredSize.Height; 383remainingLength -= fHorizontal ? toolBar.DesiredSize.Width : toolBar.DesiredSize.Height; 433Size toolBarArrangeSize = new Size(fHorizontal ? toolBar.DesiredSize.Width : bandThickness, fHorizontal ? bandThickness : toolBar.DesiredSize.Height );
System\Windows\Controls\TreeViewItem.cs (1)
372Size pixelHeaderSize = this.IsVisible && headerElement != null ? headerElement.DesiredSize : new Size();
System\Windows\Controls\ViewBox.cs (3)
315Size childSize = child.DesiredSize; 340Size childSize = child.DesiredSize; 348child.Arrange(new Rect(new Point(), child.DesiredSize));
System\Windows\Controls\VirtualizingStackPanel.cs (24)
3405childDesiredSize = child.DesiredSize; 3436Size previousChildSizeBeforeViewport = child.DesiredSize; 3443childSizeBeforeViewport = containerBeforeViewport.DesiredSize; 3977((isHorizontal && DoubleUtil.GreaterThanOrClose(DesiredSize.Width, PreviousConstraint.Width)) || 3978(!isHorizontal && DoubleUtil.GreaterThanOrClose(DesiredSize.Height, PreviousConstraint.Height))); 5876Size childDesiredSize = ((UIElement)children[i]).DesiredSize; 6069containerSize.Height = IsPixelBased ? DesiredSize.Height : 1; 6074containerSize.Width = IsPixelBased ? DesiredSize.Width : 1; 6099containerSize.Height = IsPixelBased ? DesiredSize.Height : 1; 6104containerSize.Width = IsPixelBased ? DesiredSize.Width : 1; 6173double pixelHeight = DesiredSize.Height; 6183double pixelWidth = DesiredSize.Width; 6465Rect childRect = new Rect(new Point(), child.DesiredSize); 6472Size itemsSize = itemsHost.DesiredSize; 7505childSize = child.DesiredSize; 7509childSize = new Size(DoubleUtil.GreaterThanZero(child.DesiredSize.Width) ? 1 : 0, 7510DoubleUtil.GreaterThanZero(child.DesiredSize.Height) ? 1 : 0); 7655childPixelSize = child.DesiredSize; 7672childPixelSize = child.DesiredSize; 7680childSize = new Size(DoubleUtil.GreaterThanZero(child.DesiredSize.Width) ? 1 : 0, 7681DoubleUtil.GreaterThanZero(child.DesiredSize.Height) ? 1 : 0); 8270childDesiredSize = child.DesiredSize; 11276childSize = container.DesiredSize; 13032info._desiredSize = child.DesiredSize;
System\Windows\Controls\WrapPanel.cs (6)
238(itemWidthSet ? itemWidth : child.DesiredSize.Width), 239(itemHeightSet ? itemHeight : child.DesiredSize.Height)); 294(itemWidthSet ? itemWidth : child.DesiredSize.Width), 295(itemHeightSet ? itemHeight : child.DesiredSize.Height)); 341UVSize childSize = new UVSize(Orientation, child.DesiredSize.Width, child.DesiredSize.Height);
System\Windows\Documents\AdornerLayer.cs (1)
466adornerInfo.Adorner.Arrange(new Rect(new Point(), adornerInfo.Adorner.DesiredSize));
System\Windows\Documents\FixedPage.cs (3)
785x = arrangeSize.Width - child.DesiredSize.Width - right; 800y = arrangeSize.Height - child.DesiredSize.Height - bottom; 804child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
System\Windows\FrameworkElement.cs (2)
4595unclippedDesiredSize = new Size(Math.Max(0, this.DesiredSize.Width - marginWidth), 4596Math.Max(0, this.DesiredSize.Height - marginHeight));
System\Windows\Window.cs (1)
3433Size childDesiredSize = child.DesiredSize;
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
412desired = child.DesiredSize;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
236desired = child.DesiredSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
202Size desiredSize = child.DesiredSize;
PresentationFramework.Aero2 (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
412desired = child.DesiredSize;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
236desired = child.DesiredSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
202Size desiredSize = child.DesiredSize;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
202Size desiredSize = child.DesiredSize;
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (1)
676desired = child.DesiredSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
202Size desiredSize = child.DesiredSize;
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
333desired = child.DesiredSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
202Size desiredSize = child.DesiredSize;
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
291desired = child.DesiredSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
202Size desiredSize = child.DesiredSize;
ReachFramework (1)
AlphaFlattener\Utility.cs (1)
1580uiElement.Arrange(new Rect(uiElement.DesiredSize));
System.Windows.Controls.Ribbon (85)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
81_keyTipControl.Arrange(new Rect(_keyTipControl.DesiredSize));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (3)
57tabGroupHeader.IdealDesiredWidth = tabGroupHeader.DesiredSize.Width; 88desiredSize.Height = Math.Max(desiredSize.Height, tabGroupHeader.DesiredSize.Height); 109double height = tabGroupHeader.DesiredSize.Height;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (4)
386Size childSize = child.DesiredSize; 460Size childDesiredSize = child.DesiredSize; 600previousChildSize = child.DesiredSize.Height; 602rcChild.Width = Math.Max(finalSize.Width, child.DesiredSize.Width);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (3)
340Size childSize = child.DesiredSize; 413Size childSize = child.DesiredSize; 576maxRowHeight = Math.Max(maxRowHeight, children[i].DesiredSize.Height);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (6)
65Size childDesiredSize = child.DesiredSize; 87double arrangeWidth = child.DesiredSize.Width; 141maxStarColumnWidth = Math.Max(maxStarColumnWidth, Math.Min(child.MaxWidth, child.DesiredSize.Width)); 210Size childDesiredSize = child.DesiredSize; 269Size originalDesiredSize = DesiredSize; 358columnDesiredWidth = Math.Max(columnDesiredWidth, child.DesiredSize.Width);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
309result += child.DesiredSize.Width;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (11)
119if (child.DesiredSize.Width > maxChildWidth) 121maxChildWidth = child.DesiredSize.Width; 123totalChildHeight += child.DesiredSize.Height; 168desiredSize.Height -= starLayoutTarget.DesiredSize.Height; 169double availableHeight = starLayoutTarget.DesiredSize.Height + surplusHeight; 172desiredSize.Width = Math.Max(starLayoutTarget.DesiredSize.Width, desiredSize.Width); 173desiredSize.Height += starLayoutTarget.DesiredSize.Height; 207totalDesiredHeight += children[i].DesiredSize.Height; 226double availableHeight = child.DesiredSize.Height + surplusHeight; 232child.Arrange(new Rect(0.0, startY, finalSize.Width, child.DesiredSize.Height)); 233startY += child.DesiredSize.Height;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (4)
30panelDesiredSize.Width += child.DesiredSize.Width; 31panelDesiredSize.Height = Math.Max(panelDesiredSize.Height, child.DesiredSize.Height); 48previousChildSize = child.DesiredSize.Width; 50rcChild.Height = Math.Max(finalSize.Height, child.DesiredSize.Height);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (4)
204Size childDesiredSize = generatedChild.DesiredSize; 283previousChildSize = child.DesiredSize.Width; 285rcChild.Height = Math.Max(finalSize.Height, child.DesiredSize.Height); 324Debug.Assert(currentChild.DesiredSize.Width > 0.0);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (23)
131desiredSize.Width -= ribbonTabHeader.DesiredSize.Width; 133desiredSize.Width += ribbonTabHeader.DesiredSize.Width; 255xOffset += child.DesiredSize.Width; 395desiredSize.Width += ribbonTabHeader.DesiredSize.Width; 396desiredSize.Height = Math.Max(desiredSize.Height, ribbonTabHeader.DesiredSize.Height); 400totalDesiredWidthRegularTabHeaders += ribbonTabHeader.DesiredSize.Width; 412desiredSize.Width += child.DesiredSize.Width; 413desiredSize.Height = Math.Max(desiredSize.Height, child.DesiredSize.Height); 414totalDesiredWidthRegularTabHeaders += child.DesiredSize.Width; 450desiredSize.Width += ribbonTabHeader.DesiredSize.Width; 451desiredSize.Height = Math.Max(desiredSize.Height, ribbonTabHeader.DesiredSize.Height); 461desiredSize.Width += child.DesiredSize.Width; 462desiredSize.Height = Math.Max(desiredSize.Height, child.DesiredSize.Height); 495double elementSize = element.DesiredSize.Width; 620tabGroup.TabsDesiredWidth += tabHeader.DesiredSize.Width; 694child.Arrange(new Rect(childX - HorizontalOffset, arrangeSize.Height - child.DesiredSize.Height, child.DesiredSize.Width, child.DesiredSize.Height)); 695childX += child.DesiredSize.Width; 735child.Arrange(new Rect(childX - HorizontalOffset, arrangeSize.Height - child.DesiredSize.Height, child.DesiredSize.Width, child.DesiredSize.Height)); 736childX += child.DesiredSize.Width;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
41Size childSize = children[i].DesiredSize;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (16)
87desiredSize.Width += groupHeaderItemsControl.DesiredSize.Width; 88desiredSize.Height = Math.Max(desiredSize.Height, groupHeaderItemsControl.DesiredSize.Height); 127availableToQat = qat.DesiredSize.Width; 130desiredSize.Height = Math.Max(desiredSize.Height, qat.DesiredSize.Height); 141if (DoubleUtil.LessThanOrClose(titleHost.DesiredSize.Width, leftSpace)) 157desiredSize.Width += titleHost.DesiredSize.Width; 158desiredSize.Height = Math.Max(desiredSize.Height, titleHost.DesiredSize.Height); 189endContextualTabX = Math.Min(startContextualTabX + tabGroups.DesiredSize.Width, finalSize.Width); 190tabGroups.Arrange(new Rect(startContextualTabX, finalSize.Height - tabGroups.DesiredSize.Height, tabGroups.DesiredSize.Width, tabGroups.DesiredSize.Height)); 198qatDesiredWidth = qat.DesiredSize.Width; 199qat.Arrange(new Rect(0, 0.0, qatDesiredWidth, qat.DesiredSize.Height)); 209width = titleHost.DesiredSize.Width; 210height = titleHost.DesiredSize.Height; 269endX += tab.RibbonTabHeader.DesiredSize.Width;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (3)
1130Measure(DesiredSize); 1143Measure(DesiredSize); 1269_templateContentControl.Measure(_templateContentControl.DesiredSize);
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (5)
356Size bufferedSize = new Size(_textBlock1.DesiredSize.Width + 0.5, 357_textBlock1.DesiredSize.Height); 388double width = _textBlock1.DesiredSize.Width; 397_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize)); 425_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize));
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
114SD.Size prefSize = Convert.ToSystemDrawingSize(_decorator.DesiredSize, scale);