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)
1083rootUIElement.Arrange(new Rect(new Point(), rootUIElement.DesiredSize)); 1115if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, sizeFromHwndLogicalUnits.Height); 1116else if(_sizeToContent == SizeToContent.Height) sz = new Size(sizeFromHwndLogicalUnits.Width, rootUIElement.DesiredSize.Height); 1486if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, relevantPt.Y); 1487else if (_sizeToContent == SizeToContent.Height) sz = new Size(relevantPt.X, rootUIElement.DesiredSize.Height);
System\Windows\LayoutManager.cs (2)
483arrangeRect.Width = element.DesiredSize.Width; 486arrangeRect.Height = element.DesiredSize.Height;
System\Windows\Media\BitmapCacheBrush.cs (1)
280element.Arrange(new Rect(element.DesiredSize));
System\Windows\Media\VisualBrush.cs (1)
248element.Arrange(new Rect(element.DesiredSize));
PresentationFramework (168)
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
152((UIElement)_annotationComponent).Arrange(new Rect(((UIElement)_annotationComponent).DesiredSize));
MS\Internal\Controls\InkCanvasInnerCanvas.cs (7)
97newSize.Width = Math.Max(newSize.Width, left + child.DesiredSize.Width); 101newSize.Width = Math.Max(newSize.Width, child.DesiredSize.Width); 107newSize.Height = Math.Max(newSize.Height, top + child.DesiredSize.Height); 111newSize.Height = Math.Max(newSize.Height, child.DesiredSize.Height); 156x = arrangeSize.Width - child.DesiredSize.Width - right; 171y = arrangeSize.Height - child.DesiredSize.Height - bottom; 175child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
MS\Internal\Controls\TemplatedAdorner.cs (3)
146!DoubleUtil.AreClose(ReferenceElement.DesiredSize, AdornedElement.DesiredSize) 154return (_child).DesiredSize;
MS\Internal\Documents\FlowDocumentView.cs (1)
70desiredSize = this.DesiredSize;
MS\Internal\Documents\UIElementIsland.cs (2)
90islandSize.Width = horizontalAutoSize ? _child.DesiredSize.Width : availableSize.Width; 91islandSize.Height = verticalAutoSize ? _child.DesiredSize.Height : availableSize.Height;
MS\Internal\Helper.cs (6)
534return child.DesiredSize; 1085headerSize.Height = Math.Max(virtualizingElement.DesiredSize.Height, headerSize.Height); 1087headerSize.Width = Math.Max(virtualizingElement.DesiredSize.Width, headerSize.Width); 1110Size desiredSize = virtualizingElement.DesiredSize; 1179Rect parentRect = new Rect(new Point(), virtualizingElement.DesiredSize); 1188Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.DesiredSize));
MS\Internal\LayoutDump.cs (2)
248DumpSize(writer, "DesiredSize", element.DesiredSize); 548if (DoubleUtil.AreClose(extent, element.DesiredSize))
MS\Internal\PtsHost\Line.cs (2)
375desiredSize = inlineObject.UIElementIsland.Root.DesiredSize; 433if (!line.HasCollapsed || ((rect.Left + inlineObject.UIElementIsland.Root.DesiredSize.Width) < line.Width))
MS\Internal\PtsHost\PtsHost.cs (2)
2532dvrSumHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height); 2533dvrMinHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height);
MS\Internal\PtsHost\RunClient.cs (1)
81Size size = UIElementIsland.Root.DesiredSize;
MS\Internal\PtsHost\TextParaClient.cs (2)
1277uiElement.Arrange(new Rect(uiElement.DesiredSize)); 1310uiElement.Arrange(new Rect(uiElement.DesiredSize));
MS\Internal\Text\ComplexLine.cs (1)
217inlineObject.Element.Arrange(new Rect(inlineObject.Element.DesiredSize));
MS\Internal\Text\InlineObject.cs (1)
75Size size = _element.DesiredSize;
System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
310decorator.Arrange(new Rect(decorator.DesiredSize)); 351decorator.Arrange(new Rect(decorator.DesiredSize));
System\Windows\Controls\AccessText.cs (1)
428return TextBlock.DesiredSize;
System\Windows\Controls\Border.cs (1)
239Size childSize = child.DesiredSize;
System\Windows\Controls\Canvas.cs (3)
316x = arrangeSize.Width - child.DesiredSize.Width - right; 331y = arrangeSize.Height - child.DesiredSize.Height - bottom; 335child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
System\Windows\Controls\Control.cs (1)
711return child.DesiredSize;
System\Windows\Controls\DataGridCellsPanel.cs (5)
83if (!DoubleUtil.AreClose(this.DesiredSize, measureSize) && MeasureDuringArrange) 122desiredWidth = child.DesiredSize.Width; 134Size childDesiredSize = child.DesiredSize; 577childSize = child.DesiredSize; 1484childWidth = child.DesiredSize.Width;
System\Windows\Controls\DataGridHelper.cs (2)
262if (!DoubleUtil.AreClose(element.DesiredSize.Width, constraintWidth)) 268desiredWidth = element.DesiredSize.Width;
System\Windows\Controls\DataGridRow.cs (1)
553double minHeight = Math.Max(RowHeader.DesiredSize.Height, MinHeight);
System\Windows\Controls\Decorator.cs (1)
199return (child.DesiredSize);
System\Windows\Controls\DockPanel.cs (2)
231childDesiredSize = child.DesiredSize; 287Size childDesiredSize = child.DesiredSize;
System\Windows\Controls\Grid.cs (8)
380gridDesiredSize.Width = Math.Max(gridDesiredSize.Width, child.DesiredSize.Width); 381gridDesiredSize.Height = Math.Max(gridDesiredSize.Height, child.DesiredSize.Height); 1220double oldWidth = children[i].DesiredSize.Width; 1224hasDesiredSizeUChanged |= !DoubleUtil.AreClose(oldWidth, children[i].DesiredSize.Width); 1230DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize)); 1239children[i].DesiredSize.Width); 1247DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize)); 1256children[i].DesiredSize.Height);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
277DesiredWidthList[column.ActualIndex] = column.EnsureWidth(child.DesiredSize.Width); 299maxHeight = Math.Max(maxHeight, child.DesiredSize.Height); 306maxHeight = Math.Max(maxHeight, _paddingHeader.DesiredSize.Height); 399_indicator.Arrange(new Rect(pos, new Size(_indicator.DesiredSize.Width, arrangeSize.Height)));
System\Windows\Controls\GridViewRowPresenter.cs (2)
168column.EnsureWidth(child.DesiredSize.Width); 192maxHeight = Math.Max(maxHeight, child.DesiredSize.Height);
System\Windows\Controls\GroupItem.cs (1)
297pixelHeaderSize = headerElement.DesiredSize;
System\Windows\Controls\InkCanvas.cs (1)
230return _localAdornerDecorator.DesiredSize;
System\Windows\Controls\Page.cs (1)
602return child.DesiredSize;
System\Windows\Controls\Primitives\BulletDecorator.cs (8)
251bulletSize = bullet.DesiredSize; 261contentSize = content.DesiredSize; 286bullet.Arrange(new Rect(bullet.DesiredSize)); 300contentSize.Width = Math.Max(content.DesiredSize.Width, arrangeSize.Width - bullet.DesiredSize.Width); 301contentSize.Height = Math.Max(content.DesiredSize.Height, arrangeSize.Height); 312bullet.Arrange(new Rect(0, bulletOffsetY, bullet.DesiredSize.Width, bullet.DesiredSize.Height));
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
121indicatorSize = _columnHeaderDragIndicator.DesiredSize; 129indicatorSize = _columnHeaderDropLocationIndicator.DesiredSize;
System\Windows\Controls\Primitives\DocumentPageView.cs (3)
229desiredSize = this.DesiredSize; 611_visualCloneSize = this.DesiredSize; 632_visualCloneSize = this.DesiredSize;
System\Windows\Controls\Primitives\PopupRoot.cs (3)
177desiredSize = _transformDecorator.DesiredSize; 202desiredSize = _transformDecorator.DesiredSize; 238Size restricted2DDesiredSize = _transformDecorator.DesiredSize;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
485Rect childRect = new Rect(child.DesiredSize);
System\Windows\Controls\Primitives\TabPanel.cs (2)
212desiredSizeWithoutMargin.Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom); 213desiredSizeWithoutMargin.Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right);
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
114Size childDesiredSize = child.DesiredSize; 127Size sz = child.DesiredSize; 171Size sz = children[i].DesiredSize; 213child.Arrange(new Rect(x, y, child.DesiredSize.Width, lineHeight)); 214x += child.DesiredSize.Width;
System\Windows\Controls\Primitives\ToolBarPanel.cs (6)
94Size childDesiredSize = child.DesiredSize; 180Size childDesiredSize = child.DesiredSize; 311previousChildSize = child.DesiredSize.Width; 313rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 318previousChildSize = child.DesiredSize.Height; 320rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width);
System\Windows\Controls\Primitives\Track.cs (3)
436desiredSize = Thumb.DesiredSize; 590thumbLength = Thumb == null ? 0 : Thumb.DesiredSize.Height; 595thumbLength = Thumb == null ? 0 : Thumb.DesiredSize.Width;
System\Windows\Controls\Primitives\UniformGrid.cs (1)
185Size childDesiredSize = child.DesiredSize;
System\Windows\Controls\ScrollViewer.cs (1)
1300desiredSize = child.DesiredSize;
System\Windows\Controls\Stack.cs (13)
598Size childDesiredSize = child.DesiredSize; 645if (fHorizontal) { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Width; } 646else { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Height; } 759previousChildSize = child.DesiredSize.Width; 761rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 766previousChildSize = child.DesiredSize.Height; 768rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width); 844? ((UIElement)children[i]).DesiredSize.Width 845: ((UIElement)children[i]).DesiredSize.Height; 950Size childDesiredSize = InternalChildren[childIndex].DesiredSize; 957childDesiredSize = InternalChildren[i].DesiredSize; 976newRect.Width = InternalChildren[childIndex].DesiredSize.Width; 982newRect.Height = InternalChildren[childIndex].DesiredSize.Height;
System\Windows\Controls\TextBlock.cs (2)
1981desiredSize = inlineObject.Element.DesiredSize; 2010desiredSize = inlineObject.Element.DesiredSize;
System\Windows\Controls\ToolBar.cs (2)
558extraLength = Math.Max(0.0, desiredSize.Width - toolBarPanel.DesiredSize.Width + margin.Left + margin.Right); 562extraLength = Math.Max(0.0, desiredSize.Height - toolBarPanel.DesiredSize.Height + margin.Top + margin.Bottom);
System\Windows\Controls\ToolBarTray.cs (8)
389bandThickness = Math.Max(bandThickness, fHorizontal ? toolBar.DesiredSize.Height : toolBar.DesiredSize.Width); 390bandLength += fHorizontal ? toolBar.DesiredSize.Width : toolBar.DesiredSize.Height; 391remainingLength -= fHorizontal ? toolBar.DesiredSize.Width : toolBar.DesiredSize.Height; 441Size toolBarArrangeSize = new Size(fHorizontal ? toolBar.DesiredSize.Width : bandThickness, fHorizontal ? bandThickness : toolBar.DesiredSize.Height );
System\Windows\Controls\TreeViewItem.cs (1)
376Size pixelHeaderSize = this.IsVisible && headerElement != null ? headerElement.DesiredSize : new Size();
System\Windows\Controls\ViewBox.cs (3)
321Size childSize = child.DesiredSize; 346Size childSize = child.DesiredSize; 354child.Arrange(new Rect(new Point(), child.DesiredSize));
System\Windows\Controls\VirtualizingStackPanel.cs (24)
3410childDesiredSize = child.DesiredSize; 3441Size previousChildSizeBeforeViewport = child.DesiredSize; 3448childSizeBeforeViewport = containerBeforeViewport.DesiredSize; 3982((isHorizontal && DoubleUtil.GreaterThanOrClose(DesiredSize.Width, PreviousConstraint.Width)) || 3983(!isHorizontal && DoubleUtil.GreaterThanOrClose(DesiredSize.Height, PreviousConstraint.Height))); 5881Size childDesiredSize = ((UIElement)children[i]).DesiredSize; 6074containerSize.Height = IsPixelBased ? DesiredSize.Height : 1; 6079containerSize.Width = IsPixelBased ? DesiredSize.Width : 1; 6104containerSize.Height = IsPixelBased ? DesiredSize.Height : 1; 6109containerSize.Width = IsPixelBased ? DesiredSize.Width : 1; 6178double pixelHeight = DesiredSize.Height; 6188double pixelWidth = DesiredSize.Width; 6470Rect childRect = new Rect(new Point(), child.DesiredSize); 6477Size itemsSize = itemsHost.DesiredSize; 7510childSize = child.DesiredSize; 7514childSize = new Size(DoubleUtil.GreaterThanZero(child.DesiredSize.Width) ? 1 : 0, 7515DoubleUtil.GreaterThanZero(child.DesiredSize.Height) ? 1 : 0); 7660childPixelSize = child.DesiredSize; 7677childPixelSize = child.DesiredSize; 7685childSize = new Size(DoubleUtil.GreaterThanZero(child.DesiredSize.Width) ? 1 : 0, 7686DoubleUtil.GreaterThanZero(child.DesiredSize.Height) ? 1 : 0); 8275childDesiredSize = child.DesiredSize; 11281childSize = container.DesiredSize; 13037info._desiredSize = child.DesiredSize;
System\Windows\Controls\WrapPanel.cs (6)
248(itemWidthSet ? itemWidth : child.DesiredSize.Width), 249(itemHeightSet ? itemHeight : child.DesiredSize.Height)); 304(itemWidthSet ? itemWidth : child.DesiredSize.Width), 305(itemHeightSet ? itemHeight : child.DesiredSize.Height)); 351UVSize childSize = new UVSize(Orientation, child.DesiredSize.Width, child.DesiredSize.Height);
System\Windows\Documents\AdornerLayer.cs (1)
470adornerInfo.Adorner.Arrange(new Rect(new Point(), adornerInfo.Adorner.DesiredSize));
System\Windows\Documents\FixedPage.cs (3)
793x = arrangeSize.Width - child.DesiredSize.Width - right; 808y = arrangeSize.Height - child.DesiredSize.Height - bottom; 812child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
System\Windows\FrameworkElement.cs (2)
4606unclippedDesiredSize = new Size(Math.Max(0, this.DesiredSize.Width - marginWidth), 4607Math.Max(0, this.DesiredSize.Height - marginHeight));
System\Windows\Window.cs (1)
3446Size childDesiredSize = child.DesiredSize;
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
421desired = child.DesiredSize;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
242desired = 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)
421desired = child.DesiredSize;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
242desired = 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)
679desired = 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)
336desired = 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)
294desired = 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)
1591uiElement.Arrange(new Rect(uiElement.DesiredSize));
System.Windows.Controls.Ribbon (85)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
84_keyTipControl.Arrange(new Rect(_keyTipControl.DesiredSize));
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (3)
62tabGroupHeader.IdealDesiredWidth = tabGroupHeader.DesiredSize.Width; 93desiredSize.Height = Math.Max(desiredSize.Height, tabGroupHeader.DesiredSize.Height); 114double height = tabGroupHeader.DesiredSize.Height;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (4)
391Size childSize = child.DesiredSize; 465Size childDesiredSize = child.DesiredSize; 605previousChildSize = child.DesiredSize.Height; 607rcChild.Width = Math.Max(finalSize.Width, child.DesiredSize.Width);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (3)
345Size childSize = child.DesiredSize; 418Size childSize = child.DesiredSize; 581maxRowHeight = Math.Max(maxRowHeight, children[i].DesiredSize.Height);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (6)
67Size childDesiredSize = child.DesiredSize; 89double arrangeWidth = child.DesiredSize.Width; 143maxStarColumnWidth = Math.Max(maxStarColumnWidth, Math.Min(child.MaxWidth, child.DesiredSize.Width)); 212Size childDesiredSize = child.DesiredSize; 271Size originalDesiredSize = DesiredSize; 360columnDesiredWidth = Math.Max(columnDesiredWidth, child.DesiredSize.Width);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
314result += child.DesiredSize.Width;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (11)
123if (child.DesiredSize.Width > maxChildWidth) 125maxChildWidth = child.DesiredSize.Width; 127totalChildHeight += child.DesiredSize.Height; 172desiredSize.Height -= starLayoutTarget.DesiredSize.Height; 173double availableHeight = starLayoutTarget.DesiredSize.Height + surplusHeight; 176desiredSize.Width = Math.Max(starLayoutTarget.DesiredSize.Width, desiredSize.Width); 177desiredSize.Height += starLayoutTarget.DesiredSize.Height; 211totalDesiredHeight += children[i].DesiredSize.Height; 230double availableHeight = child.DesiredSize.Height + surplusHeight; 236child.Arrange(new Rect(0.0, startY, finalSize.Width, child.DesiredSize.Height)); 237startY += child.DesiredSize.Height;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarOverflowPanel.cs (4)
34panelDesiredSize.Width += child.DesiredSize.Width; 35panelDesiredSize.Height = Math.Max(panelDesiredSize.Height, child.DesiredSize.Height); 52previousChildSize = child.DesiredSize.Width; 54rcChild.Height = Math.Max(finalSize.Height, child.DesiredSize.Height);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (4)
210Size childDesiredSize = generatedChild.DesiredSize; 289previousChildSize = child.DesiredSize.Width; 291rcChild.Height = Math.Max(finalSize.Height, child.DesiredSize.Height); 330Debug.Assert(currentChild.DesiredSize.Width > 0.0);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (23)
134desiredSize.Width -= ribbonTabHeader.DesiredSize.Width; 136desiredSize.Width += ribbonTabHeader.DesiredSize.Width; 258xOffset += child.DesiredSize.Width; 398desiredSize.Width += ribbonTabHeader.DesiredSize.Width; 399desiredSize.Height = Math.Max(desiredSize.Height, ribbonTabHeader.DesiredSize.Height); 403totalDesiredWidthRegularTabHeaders += ribbonTabHeader.DesiredSize.Width; 415desiredSize.Width += child.DesiredSize.Width; 416desiredSize.Height = Math.Max(desiredSize.Height, child.DesiredSize.Height); 417totalDesiredWidthRegularTabHeaders += child.DesiredSize.Width; 453desiredSize.Width += ribbonTabHeader.DesiredSize.Width; 454desiredSize.Height = Math.Max(desiredSize.Height, ribbonTabHeader.DesiredSize.Height); 464desiredSize.Width += child.DesiredSize.Width; 465desiredSize.Height = Math.Max(desiredSize.Height, child.DesiredSize.Height); 498double elementSize = element.DesiredSize.Width; 623tabGroup.TabsDesiredWidth += tabHeader.DesiredSize.Width; 697child.Arrange(new Rect(childX - HorizontalOffset, arrangeSize.Height - child.DesiredSize.Height, child.DesiredSize.Width, child.DesiredSize.Height)); 698childX += child.DesiredSize.Width; 738child.Arrange(new Rect(childX - HorizontalOffset, arrangeSize.Height - child.DesiredSize.Height, child.DesiredSize.Width, child.DesiredSize.Height)); 739childX += child.DesiredSize.Width;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (1)
45Size childSize = children[i].DesiredSize;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (16)
91desiredSize.Width += groupHeaderItemsControl.DesiredSize.Width; 92desiredSize.Height = Math.Max(desiredSize.Height, groupHeaderItemsControl.DesiredSize.Height); 131availableToQat = qat.DesiredSize.Width; 134desiredSize.Height = Math.Max(desiredSize.Height, qat.DesiredSize.Height); 145if (DoubleUtil.LessThanOrClose(titleHost.DesiredSize.Width, leftSpace)) 161desiredSize.Width += titleHost.DesiredSize.Width; 162desiredSize.Height = Math.Max(desiredSize.Height, titleHost.DesiredSize.Height); 193endContextualTabX = Math.Min(startContextualTabX + tabGroups.DesiredSize.Width, finalSize.Width); 194tabGroups.Arrange(new Rect(startContextualTabX, finalSize.Height - tabGroups.DesiredSize.Height, tabGroups.DesiredSize.Width, tabGroups.DesiredSize.Height)); 202qatDesiredWidth = qat.DesiredSize.Width; 203qat.Arrange(new Rect(0, 0.0, qatDesiredWidth, qat.DesiredSize.Height)); 213width = titleHost.DesiredSize.Width; 214height = titleHost.DesiredSize.Height; 273endX += tab.RibbonTabHeader.DesiredSize.Width;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (3)
1133Measure(DesiredSize); 1146Measure(DesiredSize); 1272_templateContentControl.Measure(_templateContentControl.DesiredSize);
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (5)
359Size bufferedSize = new Size(_textBlock1.DesiredSize.Width + 0.5, 360_textBlock1.DesiredSize.Height); 391double width = _textBlock1.DesiredSize.Width; 400_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize)); 428_textBlock1.Arrange(new Rect(_textBlock1.DesiredSize));
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
117SD.Size prefSize = Convert.ToSystemDrawingSize(_decorator.DesiredSize, scale);