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