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