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