286 references to DesiredSize
Microsoft.CodeAnalysis.EditorFeatures.Wpf (4)
InlineDiagnostics\InlineDiagnosticsTag.cs (1)
130Canvas.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)
133var height = DesiredSize.Height; 134var width = DesiredSize.Width;
Microsoft.VisualStudio.LanguageServices (5)
PreviewPane\PreviewPane.xaml.cs (5)
77_heightForThreeLineTitle = TitleTextBlock.DesiredSize.Height; 289headerStackPanelWidth = HeaderStackPanel.DesiredSize.Width; 292titleTextBlockHeight = TitleTextBlock.DesiredSize.Height; 299headerStackPanelWidth = PreviewDockPanel.DesiredSize.Width; 303titleTextBlockHeight = TitleTextBlock.DesiredSize.Height;
PresentationCore (9)
System\Windows\InterOp\HwndSource.cs (5)
1065rootUIElement.Arrange(new Rect(new Point(), rootUIElement.DesiredSize)); 1097if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, sizeFromHwndLogicalUnits.Height); 1098else if(_sizeToContent == SizeToContent.Height) sz = new Size(sizeFromHwndLogicalUnits.Width, rootUIElement.DesiredSize.Height); 1468if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, relevantPt.Y); 1469else if (_sizeToContent == SizeToContent.Height) sz = new Size(relevantPt.X, rootUIElement.DesiredSize.Height);
System\Windows\LayoutManager.cs (2)
466arrangeRect.Width = element.DesiredSize.Width; 469arrangeRect.Height = element.DesiredSize.Height;
System\Windows\Media\BitmapCacheBrush.cs (1)
265element.Arrange(new Rect(element.DesiredSize));
System\Windows\Media\VisualBrush.cs (1)
232element.Arrange(new Rect(element.DesiredSize));
PresentationFramework (168)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
148((UIElement)_annotationComponent).Arrange(new Rect(((UIElement)_annotationComponent).DesiredSize));
MS\Internal\Controls\InkCanvasInnerCanvas.cs (7)
93newSize.Width = Math.Max(newSize.Width, left + child.DesiredSize.Width); 97newSize.Width = Math.Max(newSize.Width, child.DesiredSize.Width); 103newSize.Height = Math.Max(newSize.Height, top + child.DesiredSize.Height); 107newSize.Height = Math.Max(newSize.Height, child.DesiredSize.Height); 152x = arrangeSize.Width - child.DesiredSize.Width - right; 167y = arrangeSize.Height - child.DesiredSize.Height - bottom; 171child.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)
67desiredSize = this.DesiredSize;
MS\Internal\Documents\UIElementIsland.cs (2)
87islandSize.Width = horizontalAutoSize ? _child.DesiredSize.Width : availableSize.Width; 88islandSize.Height = verticalAutoSize ? _child.DesiredSize.Height : availableSize.Height;
MS\Internal\Helper.cs (6)
524return child.DesiredSize; 1069headerSize.Height = Math.Max(virtualizingElement.DesiredSize.Height, headerSize.Height); 1071headerSize.Width = Math.Max(virtualizingElement.DesiredSize.Width, headerSize.Width); 1094Size desiredSize = virtualizingElement.DesiredSize; 1163Rect parentRect = new Rect(new Point(), virtualizingElement.DesiredSize); 1172Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.DesiredSize));
MS\Internal\LayoutDump.cs (2)
246DumpSize(writer, "DesiredSize", element.DesiredSize); 546if (DoubleUtil.AreClose(extent, element.DesiredSize))
MS\Internal\PtsHost\Line.cs (2)
357desiredSize = inlineObject.UIElementIsland.Root.DesiredSize; 414if (!line.HasCollapsed || ((rect.Left + inlineObject.UIElementIsland.Root.DesiredSize.Width) < line.Width))
MS\Internal\PtsHost\PtsHost.cs (2)
2509dvrSumHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height); 2510dvrMinHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height);
MS\Internal\PtsHost\RunClient.cs (1)
77Size size = UIElementIsland.Root.DesiredSize;
MS\Internal\PtsHost\TextParaClient.cs (2)
1270uiElement.Arrange(new Rect(uiElement.DesiredSize)); 1303uiElement.Arrange(new Rect(uiElement.DesiredSize));
MS\Internal\Text\ComplexLine.cs (1)
211inlineObject.Element.Arrange(new Rect(inlineObject.Element.DesiredSize));
MS\Internal\Text\InlineObject.cs (1)
71Size size = _element.DesiredSize;
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
308decorator.Arrange(new Rect(decorator.DesiredSize)); 349decorator.Arrange(new Rect(decorator.DesiredSize));
System\Windows\Controls\AccessText.cs (1)
425return TextBlock.DesiredSize;
System\Windows\Controls\Border.cs (1)
234Size childSize = child.DesiredSize;
System\Windows\Controls\Canvas.cs (3)
305x = arrangeSize.Width - child.DesiredSize.Width - right; 320y = arrangeSize.Height - child.DesiredSize.Height - bottom; 324child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
System\Windows\Controls\Control.cs (1)
698return child.DesiredSize;
System\Windows\Controls\DataGridCellsPanel.cs (5)
78if (!DoubleUtil.AreClose(this.DesiredSize, measureSize) && MeasureDuringArrange) 116desiredWidth = child.DesiredSize.Width; 128Size childDesiredSize = child.DesiredSize; 571childSize = child.DesiredSize; 1474childWidth = child.DesiredSize.Width;
System\Windows\Controls\DataGridHelper.cs (2)
255if (!DoubleUtil.AreClose(element.DesiredSize.Width, constraintWidth)) 261desiredWidth = element.DesiredSize.Width;
System\Windows\Controls\DataGridRow.cs (1)
548double minHeight = Math.Max(RowHeader.DesiredSize.Height, MinHeight);
System\Windows\Controls\Decorator.cs (1)
193return (child.DesiredSize);
System\Windows\Controls\DockPanel.cs (2)
221childDesiredSize = child.DesiredSize; 277Size childDesiredSize = child.DesiredSize;
System\Windows\Controls\Grid.cs (8)
368gridDesiredSize.Width = Math.Max(gridDesiredSize.Width, child.DesiredSize.Width); 369gridDesiredSize.Height = Math.Max(gridDesiredSize.Height, child.DesiredSize.Height); 1203double oldWidth = children[i].DesiredSize.Width; 1207hasDesiredSizeUChanged |= !DoubleUtil.AreClose(oldWidth, children[i].DesiredSize.Width); 1213DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize)); 1222children[i].DesiredSize.Width); 1230DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize)); 1239children[i].DesiredSize.Height);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
273DesiredWidthList[column.ActualIndex] = column.EnsureWidth(child.DesiredSize.Width); 295maxHeight = Math.Max(maxHeight, child.DesiredSize.Height); 302maxHeight = Math.Max(maxHeight, _paddingHeader.DesiredSize.Height); 395_indicator.Arrange(new Rect(pos, new Size(_indicator.DesiredSize.Width, arrangeSize.Height)));
System\Windows\Controls\GridViewRowPresenter.cs (2)
163column.EnsureWidth(child.DesiredSize.Width); 187maxHeight = Math.Max(maxHeight, child.DesiredSize.Height);
System\Windows\Controls\GroupItem.cs (1)
285pixelHeaderSize = headerElement.DesiredSize;
System\Windows\Controls\InkCanvas.cs (1)
227return _localAdornerDecorator.DesiredSize;
System\Windows\Controls\Page.cs (1)
581return child.DesiredSize;
System\Windows\Controls\Primitives\BulletDecorator.cs (8)
244bulletSize = bullet.DesiredSize; 254contentSize = content.DesiredSize; 279bullet.Arrange(new Rect(bullet.DesiredSize)); 293contentSize.Width = Math.Max(content.DesiredSize.Width, arrangeSize.Width - bullet.DesiredSize.Width); 294contentSize.Height = Math.Max(content.DesiredSize.Height, arrangeSize.Height); 305bullet.Arrange(new Rect(0, bulletOffsetY, bullet.DesiredSize.Width, bullet.DesiredSize.Height));
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
115indicatorSize = _columnHeaderDragIndicator.DesiredSize; 123indicatorSize = _columnHeaderDropLocationIndicator.DesiredSize;
System\Windows\Controls\Primitives\DocumentPageView.cs (3)
224desiredSize = this.DesiredSize; 610_visualCloneSize = this.DesiredSize; 631_visualCloneSize = this.DesiredSize;
System\Windows\Controls\Primitives\PopupRoot.cs (3)
167desiredSize = _transformDecorator.DesiredSize; 192desiredSize = _transformDecorator.DesiredSize; 228Size restricted2DDesiredSize = _transformDecorator.DesiredSize;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
474Rect childRect = new Rect(child.DesiredSize);
System\Windows\Controls\Primitives\TabPanel.cs (2)
204Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom), 205Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right)
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
103Size childDesiredSize = child.DesiredSize; 116Size sz = child.DesiredSize; 160Size sz = children[i].DesiredSize; 202child.Arrange(new Rect(x, y, child.DesiredSize.Width, lineHeight)); 203x += child.DesiredSize.Width;
System\Windows\Controls\Primitives\ToolBarPanel.cs (6)
84Size childDesiredSize = child.DesiredSize; 170Size childDesiredSize = child.DesiredSize; 298previousChildSize = child.DesiredSize.Width; 300rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 305previousChildSize = child.DesiredSize.Height; 307rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width);
System\Windows\Controls\Primitives\Track.cs (3)
416desiredSize = Thumb.DesiredSize; 564thumbLength = Thumb == null ? 0 : Thumb.DesiredSize.Height; 569thumbLength = Thumb == null ? 0 : Thumb.DesiredSize.Width;
System\Windows\Controls\Primitives\UniformGrid.cs (1)
176Size childDesiredSize = child.DesiredSize;
System\Windows\Controls\ScrollViewer.cs (1)
1291desiredSize = child.DesiredSize;
System\Windows\Controls\Stack.cs (13)
587Size childDesiredSize = child.DesiredSize; 634if (fHorizontal) { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Width; } 635else { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Height; } 748previousChildSize = child.DesiredSize.Width; 750rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 755previousChildSize = child.DesiredSize.Height; 757rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width); 833? ((UIElement)children[i]).DesiredSize.Width 834: ((UIElement)children[i]).DesiredSize.Height; 939Size childDesiredSize = InternalChildren[childIndex].DesiredSize; 946childDesiredSize = InternalChildren[i].DesiredSize; 965newRect.Width = InternalChildren[childIndex].DesiredSize.Width; 971newRect.Height = InternalChildren[childIndex].DesiredSize.Height;
System\Windows\Controls\TextBlock.cs (2)
1959desiredSize = inlineObject.Element.DesiredSize; 1988desiredSize = inlineObject.Element.DesiredSize;
System\Windows\Controls\ToolBar.cs (2)
542extraLength = Math.Max(0.0, desiredSize.Width - toolBarPanel.DesiredSize.Width + margin.Left + margin.Right); 546extraLength = Math.Max(0.0, desiredSize.Height - toolBarPanel.DesiredSize.Height + margin.Top + margin.Bottom);
System\Windows\Controls\ToolBarTray.cs (8)
380bandThickness = Math.Max(bandThickness, fHorizontal ? toolBar.DesiredSize.Height : toolBar.DesiredSize.Width); 381bandLength += fHorizontal ? toolBar.DesiredSize.Width : toolBar.DesiredSize.Height; 382remainingLength -= fHorizontal ? toolBar.DesiredSize.Width : toolBar.DesiredSize.Height; 432Size toolBarArrangeSize = new Size(fHorizontal ? toolBar.DesiredSize.Width : bandThickness, fHorizontal ? bandThickness : toolBar.DesiredSize.Height );
System\Windows\Controls\TreeViewItem.cs (1)
365Size pixelHeaderSize = this.IsVisible && headerElement != null ? headerElement.DesiredSize : new Size();
System\Windows\Controls\ViewBox.cs (3)
314Size childSize = child.DesiredSize; 339Size childSize = child.DesiredSize; 347child.Arrange(new Rect(new Point(), child.DesiredSize));
System\Windows\Controls\VirtualizingStackPanel.cs (24)
3390childDesiredSize = child.DesiredSize; 3421Size previousChildSizeBeforeViewport = child.DesiredSize; 3428childSizeBeforeViewport = containerBeforeViewport.DesiredSize; 3962((isHorizontal && DoubleUtil.GreaterThanOrClose(DesiredSize.Width, PreviousConstraint.Width)) || 3963(!isHorizontal && DoubleUtil.GreaterThanOrClose(DesiredSize.Height, PreviousConstraint.Height))); 5852Size childDesiredSize = ((UIElement)children[i]).DesiredSize; 6045containerSize.Height = IsPixelBased ? DesiredSize.Height : 1; 6050containerSize.Width = IsPixelBased ? DesiredSize.Width : 1; 6075containerSize.Height = IsPixelBased ? DesiredSize.Height : 1; 6080containerSize.Width = IsPixelBased ? DesiredSize.Width : 1; 6149double pixelHeight = DesiredSize.Height; 6159double pixelWidth = DesiredSize.Width; 6441Rect childRect = new Rect(new Point(), child.DesiredSize); 6448Size itemsSize = itemsHost.DesiredSize; 7483childSize = child.DesiredSize; 7487childSize = new Size(DoubleUtil.GreaterThanZero(child.DesiredSize.Width) ? 1 : 0, 7488DoubleUtil.GreaterThanZero(child.DesiredSize.Height) ? 1 : 0); 7633childPixelSize = child.DesiredSize; 7650childPixelSize = child.DesiredSize; 7658childSize = new Size(DoubleUtil.GreaterThanZero(child.DesiredSize.Width) ? 1 : 0, 7659DoubleUtil.GreaterThanZero(child.DesiredSize.Height) ? 1 : 0); 8248childDesiredSize = child.DesiredSize; 11253childSize = container.DesiredSize; 13005_desiredSize = child.DesiredSize,
System\Windows\Controls\WrapPanel.cs (6)
237(itemWidthSet ? itemWidth : child.DesiredSize.Width), 238(itemHeightSet ? itemHeight : child.DesiredSize.Height)); 293(itemWidthSet ? itemWidth : child.DesiredSize.Width), 294(itemHeightSet ? itemHeight : child.DesiredSize.Height)); 340UVSize childSize = new UVSize(Orientation, child.DesiredSize.Width, child.DesiredSize.Height);
System\Windows\Documents\AdornerLayer.cs (1)
465adornerInfo.Adorner.Arrange(new Rect(new Point(), adornerInfo.Adorner.DesiredSize));
System\Windows\Documents\FixedPage.cs (3)
786x = arrangeSize.Width - child.DesiredSize.Width - right; 801y = arrangeSize.Height - child.DesiredSize.Height - bottom; 805child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
System\Windows\FrameworkElement.cs (2)
4585unclippedDesiredSize = new Size(Math.Max(0, this.DesiredSize.Width - marginWidth), 4586Math.Max(0, this.DesiredSize.Height - marginHeight));
System\Windows\Window.cs (1)
3420Size childDesiredSize = child.DesiredSize;
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
421desired = child.DesiredSize;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
237desired = child.DesiredSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201Size desiredSize = child.DesiredSize;
PresentationFramework.Aero2 (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
421desired = child.DesiredSize;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
237desired = child.DesiredSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201Size desiredSize = child.DesiredSize;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201Size desiredSize = child.DesiredSize;
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (1)
677desired = child.DesiredSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201Size desiredSize = child.DesiredSize;
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
332desired = child.DesiredSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201Size desiredSize = child.DesiredSize;
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
290desired = child.DesiredSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
201Size 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)
78_keyTipControl?.Arrange(new Rect(_keyTipControl.DesiredSize));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (3)
56tabGroupHeader.IdealDesiredWidth = tabGroupHeader.DesiredSize.Width; 87desiredSize.Height = Math.Max(desiredSize.Height, tabGroupHeader.DesiredSize.Height); 105double height = tabGroupHeader.DesiredSize.Height;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (4)
385Size childSize = child.DesiredSize; 459Size childDesiredSize = child.DesiredSize; 599previousChildSize = child.DesiredSize.Height; 601rcChild.Width = Math.Max(finalSize.Width, child.DesiredSize.Width);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (3)
339Size childSize = child.DesiredSize; 412Size childSize = child.DesiredSize; 575maxRowHeight = Math.Max(maxRowHeight, children[i].DesiredSize.Height);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (6)
64Size childDesiredSize = child.DesiredSize; 86double arrangeWidth = child.DesiredSize.Width; 140maxStarColumnWidth = Math.Max(maxStarColumnWidth, Math.Min(child.MaxWidth, child.DesiredSize.Width)); 209Size childDesiredSize = child.DesiredSize; 268Size originalDesiredSize = DesiredSize; 357columnDesiredWidth = Math.Max(columnDesiredWidth, child.DesiredSize.Width);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
308result += child.DesiredSize.Width;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (11)
118if (child.DesiredSize.Width > maxChildWidth) 120maxChildWidth = child.DesiredSize.Width; 122totalChildHeight += child.DesiredSize.Height; 167desiredSize.Height -= starLayoutTarget.DesiredSize.Height; 168double availableHeight = starLayoutTarget.DesiredSize.Height + surplusHeight; 171desiredSize.Width = Math.Max(starLayoutTarget.DesiredSize.Width, desiredSize.Width); 172desiredSize.Height += starLayoutTarget.DesiredSize.Height; 206totalDesiredHeight += children[i].DesiredSize.Height; 225double availableHeight = child.DesiredSize.Height + surplusHeight; 231child.Arrange(new Rect(0.0, startY, finalSize.Width, child.DesiredSize.Height)); 232startY += child.DesiredSize.Height;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (4)
29panelDesiredSize.Width += child.DesiredSize.Width; 30panelDesiredSize.Height = Math.Max(panelDesiredSize.Height, child.DesiredSize.Height); 47previousChildSize = child.DesiredSize.Width; 49rcChild.Height = Math.Max(finalSize.Height, child.DesiredSize.Height);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (4)
203Size childDesiredSize = generatedChild.DesiredSize; 279previousChildSize = child.DesiredSize.Width; 281rcChild.Height = Math.Max(finalSize.Height, child.DesiredSize.Height); 320Debug.Assert(currentChild.DesiredSize.Width > 0.0);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (23)
130desiredSize.Width -= ribbonTabHeader.DesiredSize.Width; 132desiredSize.Width += ribbonTabHeader.DesiredSize.Width; 254xOffset += child.DesiredSize.Width; 394desiredSize.Width += ribbonTabHeader.DesiredSize.Width; 395desiredSize.Height = Math.Max(desiredSize.Height, ribbonTabHeader.DesiredSize.Height); 399totalDesiredWidthRegularTabHeaders += ribbonTabHeader.DesiredSize.Width; 411desiredSize.Width += child.DesiredSize.Width; 412desiredSize.Height = Math.Max(desiredSize.Height, child.DesiredSize.Height); 413totalDesiredWidthRegularTabHeaders += child.DesiredSize.Width; 449desiredSize.Width += ribbonTabHeader.DesiredSize.Width; 450desiredSize.Height = Math.Max(desiredSize.Height, ribbonTabHeader.DesiredSize.Height); 460desiredSize.Width += child.DesiredSize.Width; 461desiredSize.Height = Math.Max(desiredSize.Height, child.DesiredSize.Height); 494double elementSize = element.DesiredSize.Width; 619tabGroup.TabsDesiredWidth += tabHeader.DesiredSize.Width; 693child.Arrange(new Rect(childX - HorizontalOffset, arrangeSize.Height - child.DesiredSize.Height, child.DesiredSize.Width, child.DesiredSize.Height)); 694childX += child.DesiredSize.Width; 734child.Arrange(new Rect(childX - HorizontalOffset, arrangeSize.Height - child.DesiredSize.Height, child.DesiredSize.Width, child.DesiredSize.Height)); 735childX += child.DesiredSize.Width;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
40Size childSize = children[i].DesiredSize;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (16)
86desiredSize.Width += groupHeaderItemsControl.DesiredSize.Width; 87desiredSize.Height = Math.Max(desiredSize.Height, groupHeaderItemsControl.DesiredSize.Height); 126availableToQat = qat.DesiredSize.Width; 129desiredSize.Height = Math.Max(desiredSize.Height, qat.DesiredSize.Height); 140if (DoubleUtil.LessThanOrClose(titleHost.DesiredSize.Width, leftSpace)) 156desiredSize.Width += titleHost.DesiredSize.Width; 157desiredSize.Height = Math.Max(desiredSize.Height, titleHost.DesiredSize.Height); 188endContextualTabX = Math.Min(startContextualTabX + tabGroups.DesiredSize.Width, finalSize.Width); 189tabGroups.Arrange(new Rect(startContextualTabX, finalSize.Height - tabGroups.DesiredSize.Height, tabGroups.DesiredSize.Width, tabGroups.DesiredSize.Height)); 197qatDesiredWidth = qat.DesiredSize.Width; 198qat.Arrange(new Rect(0, 0.0, qatDesiredWidth, qat.DesiredSize.Height)); 208width = titleHost.DesiredSize.Width; 209height = titleHost.DesiredSize.Height; 268endX += tab.RibbonTabHeader.DesiredSize.Width;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (3)
1120Measure(DesiredSize); 1133Measure(DesiredSize); 1259_templateContentControl.Measure(_templateContentControl.DesiredSize);
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (5)
355Size bufferedSize = new Size(_textBlock1.DesiredSize.Width + 0.5, 356_textBlock1.DesiredSize.Height); 387double width = _textBlock1.DesiredSize.Width; 396_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize)); 424_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize));
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
113SD.Size prefSize = Convert.ToSystemDrawingSize(_decorator.DesiredSize, scale);