244 references to DesiredSize
PresentationCore (9)
Core\CSharp\System\Windows\Interop\HwndSource.cs (5)
1279
rootUIElement.Arrange(new Rect(new Point(), rootUIElement.
DesiredSize
));
1311
if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.
DesiredSize
.Width, sizeFromHwndLogicalUnits.Height);
1312
else if(_sizeToContent == SizeToContent.Height) sz = new Size(sizeFromHwndLogicalUnits.Width, rootUIElement.
DesiredSize
.Height);
1711
if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.
DesiredSize
.Width, relevantPt.Y);
1712
else if (_sizeToContent == SizeToContent.Height) sz = new Size(relevantPt.X, rootUIElement.
DesiredSize
.Height);
Core\CSharp\System\Windows\LayoutManager.cs (2)
488
arrangeRect.Width = element.
DesiredSize
.Width;
491
arrangeRect.Height = element.
DesiredSize
.Height;
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (1)
283
element.Arrange(new Rect(element.
DesiredSize
));
Core\CSharp\System\Windows\Media\VisualBrush.cs (1)
251
element.Arrange(new Rect(element.
DesiredSize
));
PresentationFramework (168)
src\Framework\MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
158
((UIElement)_annotationComponent).Arrange(new Rect(((UIElement)_annotationComponent).
DesiredSize
));
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (7)
105
newSize.Width = Math.Max(newSize.Width, left + child.
DesiredSize
.Width);
109
newSize.Width = Math.Max(newSize.Width, child.
DesiredSize
.Width);
115
newSize.Height = Math.Max(newSize.Height, top + child.
DesiredSize
.Height);
119
newSize.Height = Math.Max(newSize.Height, child.
DesiredSize
.Height);
164
x = arrangeSize.Width - child.
DesiredSize
.Width - right;
179
y = arrangeSize.Height - child.
DesiredSize
.Height - bottom;
183
child.Arrange(new Rect(new Point(x, y), child.
DesiredSize
));
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (3)
149
!DoubleUtil.AreClose(ReferenceElement.
DesiredSize
, AdornedElement.
DesiredSize
)
157
return (_child).
DesiredSize
;
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
75
desiredSize = this.
DesiredSize
;
src\Framework\MS\Internal\Documents\UIElementIsland.cs (2)
92
islandSize.Width = horizontalAutoSize ? _child.
DesiredSize
.Width : availableSize.Width;
93
islandSize.Height = verticalAutoSize ? _child.
DesiredSize
.Height : availableSize.Height;
src\Framework\MS\Internal\Helper.cs (6)
548
return child.
DesiredSize
;
1101
headerSize.Height = Math.Max(virtualizingElement.
DesiredSize
.Height, headerSize.Height);
1103
headerSize.Width = Math.Max(virtualizingElement.
DesiredSize
.Width, headerSize.Width);
1126
Size desiredSize = virtualizingElement.
DesiredSize
;
1195
Rect parentRect = new Rect(new Point(), virtualizingElement.
DesiredSize
);
1204
Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.
DesiredSize
));
src\Framework\MS\Internal\LayoutDump.cs (2)
250
DumpSize(writer, "DesiredSize", element.
DesiredSize
);
551
if (DoubleUtil.AreClose(extent, element.
DesiredSize
))
src\Framework\MS\Internal\PtsHost\Line.cs (2)
378
desiredSize = inlineObject.UIElementIsland.Root.
DesiredSize
;
436
if (!line.HasCollapsed || ((rect.Left + inlineObject.UIElementIsland.Root.
DesiredSize
.Width) < line.Width))
src\Framework\MS\Internal\PtsHost\PtsHost.cs (2)
2658
dvrSumHeight = TextDpi.ToTextDpi(uiElement.
DesiredSize
.Height);
2659
dvrMinHeight = TextDpi.ToTextDpi(uiElement.
DesiredSize
.Height);
src\Framework\MS\Internal\PtsHost\RunClient.cs (1)
84
Size size = UIElementIsland.Root.
DesiredSize
;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
1455
uiElement.Arrange(new Rect(uiElement.
DesiredSize
));
1488
uiElement.Arrange(new Rect(uiElement.
DesiredSize
));
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
220
inlineObject.Element.Arrange(new Rect(inlineObject.Element.
DesiredSize
));
src\Framework\MS\Internal\Text\InlineObject.cs (1)
79
Size size = _element.
DesiredSize
;
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
320
decorator.Arrange(new Rect(decorator.
DesiredSize
));
361
decorator.Arrange(new Rect(decorator.
DesiredSize
));
src\Framework\System\Windows\Controls\AccessText.cs (1)
428
return TextBlock.
DesiredSize
;
src\Framework\System\Windows\Controls\Border.cs (1)
246
Size childSize = child.
DesiredSize
;
src\Framework\System\Windows\Controls\Canvas.cs (3)
322
x = arrangeSize.Width - child.
DesiredSize
.Width - right;
337
y = arrangeSize.Height - child.
DesiredSize
.Height - bottom;
341
child.Arrange(new Rect(new Point(x, y), child.
DesiredSize
));
src\Framework\System\Windows\Controls\Control.cs (1)
712
return child.
DesiredSize
;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (5)
84
if (!DoubleUtil.AreClose(this.
DesiredSize
, measureSize) && MeasureDuringArrange)
124
desiredWidth = child.
DesiredSize
.Width;
136
Size childDesiredSize = child.
DesiredSize
;
579
childSize = child.
DesiredSize
;
1486
childWidth = child.
DesiredSize
.Width;
src\Framework\System\Windows\Controls\DataGridHelper.cs (2)
263
if (!DoubleUtil.AreClose(element.
DesiredSize
.Width, constraintWidth))
269
desiredWidth = element.
DesiredSize
.Width;
src\Framework\System\Windows\Controls\DataGridRow.cs (1)
554
double minHeight = Math.Max(RowHeader.
DesiredSize
.Height, MinHeight);
src\Framework\System\Windows\Controls\Decorator.cs (1)
204
return (child.
DesiredSize
);
src\Framework\System\Windows\Controls\DockPanel.cs (2)
237
childDesiredSize = child.
DesiredSize
;
293
Size childDesiredSize = child.
DesiredSize
;
src\Framework\System\Windows\Controls\Grid.cs (8)
442
gridDesiredSize.Width = Math.Max(gridDesiredSize.Width, child.
DesiredSize
.Width);
443
gridDesiredSize.Height = Math.Max(gridDesiredSize.Height, child.
DesiredSize
.Height);
1284
double oldWidth = children[i].
DesiredSize
.Width;
1288
hasDesiredSizeUChanged |= !DoubleUtil.AreClose(oldWidth, children[i].
DesiredSize
.Width);
1294
DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].
DesiredSize
.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize));
1303
children[i].
DesiredSize
.Width);
1311
DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].
DesiredSize
.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize));
1320
children[i].
DesiredSize
.Height);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
279
DesiredWidthList[column.ActualIndex] = column.EnsureWidth(child.
DesiredSize
.Width);
301
maxHeight = Math.Max(maxHeight, child.
DesiredSize
.Height);
308
maxHeight = Math.Max(maxHeight, _paddingHeader.
DesiredSize
.Height);
401
_indicator.Arrange(new Rect(pos, new Size(_indicator.
DesiredSize
.Width, arrangeSize.Height)));
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (2)
170
column.EnsureWidth(child.
DesiredSize
.Width);
194
maxHeight = Math.Max(maxHeight, child.
DesiredSize
.Height);
src\Framework\System\Windows\Controls\GroupItem.cs (1)
299
pixelHeaderSize = headerElement.
DesiredSize
;
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
242
return _localAdornerDecorator.
DesiredSize
;
src\Framework\System\Windows\Controls\Page.cs (1)
610
return child.
DesiredSize
;
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (8)
251
bulletSize = bullet.
DesiredSize
;
261
contentSize = content.
DesiredSize
;
287
bullet.Arrange(new Rect(bullet.
DesiredSize
));
301
contentSize.Width = Math.Max(content.
DesiredSize
.Width, arrangeSize.Width - bullet.
DesiredSize
.Width);
302
contentSize.Height = Math.Max(content.
DesiredSize
.Height, arrangeSize.Height);
313
bullet.Arrange(new Rect(0, bulletOffsetY, bullet.
DesiredSize
.Width, bullet.
DesiredSize
.Height));
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
121
indicatorSize = _columnHeaderDragIndicator.
DesiredSize
;
129
indicatorSize = _columnHeaderDropLocationIndicator.
DesiredSize
;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (3)
231
desiredSize = this.
DesiredSize
;
617
_visualCloneSize = this.
DesiredSize
;
638
_visualCloneSize = this.
DesiredSize
;
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (3)
173
desiredSize = _transformDecorator.
DesiredSize
;
198
desiredSize = _transformDecorator.
DesiredSize
;
234
Size restricted2DDesiredSize = _transformDecorator.
DesiredSize
;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
491
Rect childRect = new Rect(child.
DesiredSize
);
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (2)
213
desiredSizeWithoutMargin.Height = Math.Max(0d, element.
DesiredSize
.Height - margin.Top - margin.Bottom);
214
desiredSizeWithoutMargin.Width = Math.Max(0d, element.
DesiredSize
.Width - margin.Left - margin.Right);
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
115
Size childDesiredSize = child.
DesiredSize
;
128
Size sz = child.
DesiredSize
;
172
Size sz = children[i].
DesiredSize
;
214
child.Arrange(new Rect(x, y, child.
DesiredSize
.Width, lineHeight));
215
x += child.
DesiredSize
.Width;
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (6)
95
Size childDesiredSize = child.
DesiredSize
;
181
Size childDesiredSize = child.
DesiredSize
;
312
previousChildSize = child.
DesiredSize
.Width;
314
rcChild.Height = Math.Max(arrangeSize.Height, child.
DesiredSize
.Height);
319
previousChildSize = child.
DesiredSize
.Height;
321
rcChild.Width = Math.Max(arrangeSize.Width, child.
DesiredSize
.Width);
src\Framework\System\Windows\Controls\Primitives\Track.cs (3)
438
desiredSize = Thumb.
DesiredSize
;
592
thumbLength = Thumb == null ? 0 : Thumb.
DesiredSize
.Height;
597
thumbLength = Thumb == null ? 0 : Thumb.
DesiredSize
.Width;
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (1)
193
Size childDesiredSize = child.
DesiredSize
;
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
1328
desiredSize = child.
DesiredSize
;
src\Framework\System\Windows\Controls\Stack.cs (13)
604
Size childDesiredSize = child.
DesiredSize
;
651
if (fHorizontal) { projectedLogicalVisibleSpace -= children[firstViewport - 1].
DesiredSize
.Width; }
652
else { projectedLogicalVisibleSpace -= children[firstViewport - 1].
DesiredSize
.Height; }
765
previousChildSize = child.
DesiredSize
.Width;
767
rcChild.Height = Math.Max(arrangeSize.Height, child.
DesiredSize
.Height);
772
previousChildSize = child.
DesiredSize
.Height;
774
rcChild.Width = Math.Max(arrangeSize.Width, child.
DesiredSize
.Width);
850
? ((UIElement)children[i]).
DesiredSize
.Width
851
: ((UIElement)children[i]).
DesiredSize
.Height;
956
Size childDesiredSize = InternalChildren[childIndex].
DesiredSize
;
963
childDesiredSize = InternalChildren[i].
DesiredSize
;
982
newRect.Width = InternalChildren[childIndex].
DesiredSize
.Width;
988
newRect.Height = InternalChildren[childIndex].
DesiredSize
.Height;
src\Framework\System\Windows\Controls\TextBlock.cs (2)
2070
desiredSize = inlineObject.Element.
DesiredSize
;
2099
desiredSize = inlineObject.Element.
DesiredSize
;
src\Framework\System\Windows\Controls\ToolBar.cs (2)
568
extraLength = Math.Max(0.0, desiredSize.Width - toolBarPanel.
DesiredSize
.Width + margin.Left + margin.Right);
572
extraLength = Math.Max(0.0, desiredSize.Height - toolBarPanel.
DesiredSize
.Height + margin.Top + margin.Bottom);
src\Framework\System\Windows\Controls\ToolBarTray.cs (8)
399
bandThickness = Math.Max(bandThickness, fHorizontal ? toolBar.
DesiredSize
.Height : toolBar.
DesiredSize
.Width);
400
bandLength += fHorizontal ? toolBar.
DesiredSize
.Width : toolBar.
DesiredSize
.Height;
401
remainingLength -= fHorizontal ? toolBar.
DesiredSize
.Width : toolBar.
DesiredSize
.Height;
452
Size toolBarArrangeSize = new Size(fHorizontal ? toolBar.
DesiredSize
.Width : bandThickness, fHorizontal ? bandThickness : toolBar.
DesiredSize
.Height );
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
377
Size pixelHeaderSize = this.IsVisible && headerElement != null ? headerElement.
DesiredSize
: new Size();
src\Framework\System\Windows\Controls\ViewBox.cs (3)
329
Size childSize = child.
DesiredSize
;
355
Size childSize = child.
DesiredSize
;
363
child.Arrange(new Rect(new Point(), child.
DesiredSize
));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (24)
3349
childDesiredSize = child.
DesiredSize
;
3380
Size previousChildSizeBeforeViewport = child.
DesiredSize
;
3387
childSizeBeforeViewport = containerBeforeViewport.
DesiredSize
;
3900
((isHorizontal && DoubleUtil.GreaterThanOrClose(
DesiredSize
.Width, PreviousConstraint.Width)) ||
3901
(!isHorizontal && DoubleUtil.GreaterThanOrClose(
DesiredSize
.Height, PreviousConstraint.Height)));
5743
Size childDesiredSize = ((UIElement)children[i]).
DesiredSize
;
5936
containerSize.Height = IsPixelBased ?
DesiredSize
.Height : 1;
5941
containerSize.Width = IsPixelBased ?
DesiredSize
.Width : 1;
5966
containerSize.Height = IsPixelBased ?
DesiredSize
.Height : 1;
5971
containerSize.Width = IsPixelBased ?
DesiredSize
.Width : 1;
6040
double pixelHeight =
DesiredSize
.Height;
6050
double pixelWidth =
DesiredSize
.Width;
6332
Rect childRect = new Rect(new Point(), child.
DesiredSize
);
6339
Size itemsSize = itemsHost.
DesiredSize
;
7370
childSize = child.
DesiredSize
;
7374
childSize = new Size(DoubleUtil.GreaterThan(child.
DesiredSize
.Width, 0) ? 1 : 0,
7375
DoubleUtil.GreaterThan(child.
DesiredSize
.Height, 0) ? 1 : 0);
7520
childPixelSize = child.
DesiredSize
;
7537
childPixelSize = child.
DesiredSize
;
7545
childSize = new Size(DoubleUtil.GreaterThan(child.
DesiredSize
.Width, 0) ? 1 : 0,
7546
DoubleUtil.GreaterThan(child.
DesiredSize
.Height, 0) ? 1 : 0);
8117
childDesiredSize = child.
DesiredSize
;
11143
childSize = container.
DesiredSize
;
12871
info._desiredSize = child.
DesiredSize
;
src\Framework\System\Windows\Controls\WrapPanel.cs (6)
250
(itemWidthSet ? itemWidth : child.
DesiredSize
.Width),
251
(itemHeightSet ? itemHeight : child.
DesiredSize
.Height));
306
(itemWidthSet ? itemWidth : child.
DesiredSize
.Width),
307
(itemHeightSet ? itemHeight : child.
DesiredSize
.Height));
353
UVSize childSize = new UVSize(Orientation, child.
DesiredSize
.Width, child.
DesiredSize
.Height);
src\Framework\System\Windows\Documents\AdornerLayer.cs (1)
483
adornerInfo.Adorner.Arrange(new Rect(new Point(), adornerInfo.Adorner.
DesiredSize
));
src\Framework\System\Windows\Documents\FixedPage.cs (3)
824
x = arrangeSize.Width - child.
DesiredSize
.Width - right;
839
y = arrangeSize.Height - child.
DesiredSize
.Height - bottom;
843
child.Arrange(new Rect(new Point(x, y), child.
DesiredSize
));
src\Framework\System\Windows\FrameworkElement.cs (2)
4601
unclippedDesiredSize = new Size(Math.Max(0, this.
DesiredSize
.Width - marginWidth),
4602
Math.Max(0, this.
DesiredSize
.Height - marginHeight));
src\Framework\System\Windows\Window.cs (1)
3498
Size childDesiredSize = child.
DesiredSize
;
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
427
desired = child.
DesiredSize
;
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
248
desired = child.
DesiredSize
;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
204
Size desiredSize = child.
DesiredSize
;
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (1)
684
desired = child.
DesiredSize
;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
204
Size desiredSize = child.
DesiredSize
;
PresentationFramework.Luna (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
344
desired = child.
DesiredSize
;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
204
Size desiredSize = child.
DesiredSize
;
PresentationFramework.Royale (2)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
302
desired = child.
DesiredSize
;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
204
Size desiredSize = child.
DesiredSize
;
System.Activities.Core.Presentation (18)
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (4)
292
location.X -= element.
DesiredSize
.Width / 2;
293
location.Y -= element.
DesiredSize
.Height / 2;
301
oldCenter = new Point(location.X + element.
DesiredSize
.Width / 2, location.Y + element.
DesiredSize
.Height / 2);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (2)
57
double startHeight = this.StartSymbol.
DesiredSize
.Height;
58
double startWidth = this.StartSymbol.
DesiredSize
.Width;
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (2)
656
this.ViewStateService.StoreViewState(storageModelItem, shapeSize, ((UIElement)sender).
DesiredSize
);
2597
FreeFormPanel.SetChildSize(view, view.
DesiredSize
);
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (3)
60
Rect adornedElementRect = new Rect(this.AdornedElement.
DesiredSize
);
61
Rect tooltipRect = new Rect(adornedElementRect.TopLeft + new Vector(adornedElementRect.Width, -tooltip.
DesiredSize
.Height), tooltip.
DesiredSize
);
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (2)
139
oldCenter = new Point(location.X + element.
DesiredSize
.Width / 2, location.Y + element.
DesiredSize
.Height / 2);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (5)
482
double startHeight = this.initialNode.
DesiredSize
.Height;
483
double startWidth = this.initialNode.
DesiredSize
.Width;
1316
this.ViewStateService.StoreViewState(storageModelItem, ShapeSizeViewStateKey, ((UIElement)sender).
DesiredSize
);
1966
if (anchorPoint.X > view.
DesiredSize
.Width || anchorPoint.Y > view.
DesiredSize
.Height)
System.Activities.Presentation (40)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (4)
127
return this.content.
DesiredSize
;
140
Size adornerSize = new Size(this.content.
DesiredSize
.Width * zoomLevel, this.content.
DesiredSize
.Height * zoomLevel);
145
Point location = CalculateLocation(anchor, this.AdornedElement.RenderSize, this.content.
DesiredSize
);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (4)
198
availableWidth -= child.
DesiredSize
.Width;
200
actualSize.Height = Math.Max(actualSize.Height, child.
DesiredSize
.Height);
201
actualSize.Width += child.
DesiredSize
.Width;
222
double desiredWidth = child.
DesiredSize
.Width;
System.Activities.Presentation\System\Activities\Presentation\DockedAnnotationDecorator.cs (1)
21
size.Height = this.Child.
DesiredSize
.Height;
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (7)
865
this.width = grid.
DesiredSize
.Width;
866
this.height = grid.
DesiredSize
.Height;
917
this.content.Arrange(new Rect(this.content.
DesiredSize
));
918
System.Diagnostics.Debug.WriteLine("DragShadow.ArrangeOverride " + this.content.
DesiredSize
);
919
return this.content.
DesiredSize
;
925
System.Diagnostics.Debug.WriteLine("DragShadow.MeasureOverride " + this.content.
DesiredSize
);
926
return this.content.
DesiredSize
;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (2)
117
double parentWidth = parent.
DesiredSize
.Width - parent.Margin.Left - parent.Margin.Right;
118
double parentHeight = parent.
DesiredSize
.Height - parent.Margin.Top - parent.Margin.Bottom;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (2)
132
Size childSize = new Size(frameworkChild.
DesiredSize
.Width - margin.Left - margin.Right, frameworkChild.
DesiredSize
.Height - margin.Top - margin.Bottom);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (8)
331
Size size = Children[i].
DesiredSize
;
432
if (!child.
DesiredSize
.Equals(((Size)FreeFormPanel.GetChildSize(child))))
434
FreeFormPanel.SetChildSize(child, child.
DesiredSize
);
442
lastYPosition += child.
DesiredSize
.Height + VerticalStackingDistance;
445
if (height < child.
DesiredSize
.Height + pt.Y)
447
height = child.
DesiredSize
.Height + pt.Y;
449
if (width < child.
DesiredSize
.Width + pt.X)
451
width = child.
DesiredSize
.Width + pt.X;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
517
this.ContextMenu.MinWidth = this.ContextMenu.
DesiredSize
.Width;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (7)
184
if (IsInvalid(window.ActualWidth) || IsInvalid(window.ActualWidth) || IsInvalid(window.
DesiredSize
.Width) || IsInvalid(window.
DesiredSize
.Height))
308
position.X = CalculateInBoundsValue(position.X, window.
DesiredSize
.Width, this.ActualWidth, this.selectedChild.Value.X);
309
position.Y = CalculateInBoundsValue(position.Y, window.
DesiredSize
.Height, this.ActualHeight, this.selectedChild.Value.Y);
381
child.Arrange(new Rect(pos, child.
DesiredSize
));
419
offsetPlusX = Math.Max(offsetPlusX, pos.X + child.
DesiredSize
.Width);
420
offsetPlusY = Math.Max(offsetPlusY, pos.Y + child.
DesiredSize
.Height);
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (4)
57
double Y = adornerElementToVisibleScrollViewDistance < tooltip.
DesiredSize
.Height ?
58
tooltip.
DesiredSize
.Height :
59
-tooltip.
DesiredSize
.Height;
60
Rect tooltipRect = new Rect(new Point(0, Y), tooltip.
DesiredSize
);