1 implementation of DesiredSize
Microsoft.Maui.Controls (1)
VisualElement\VisualElement.cs (1)
1882
public Size
DesiredSize
{ get; protected set; }
15 references to DesiredSize
Microsoft.Maui (13)
Layouts\AbsoluteLayoutManager.cs (2)
83
destination.Width = ResolveDimension(isWidthProportional, destination.Width, availableWidth, child.
DesiredSize
.Width);
84
destination.Height = ResolveDimension(isHeightProportional, destination.Height, availableHeight, child.
DesiredSize
.Height);
Layouts\GridLayoutManager.cs (3)
638
starSize = Math.Max(starSize, dimension(_childrenToLayOut[cell.ViewIndex].
DesiredSize
));
726
var cellRequiredHeight = Math.Min(_gridHeightConstraint, _childrenToLayOut[cell.ViewIndex].
DesiredSize
.Height);
750
var cellRequiredWidth = Math.Min(_gridWidthConstraint, _childrenToLayOut[cell.ViewIndex].
DesiredSize
.Width);
Layouts\HorizontalStackLayoutManager.cs (1)
83
var destination = new Rect(x, top, child.
DesiredSize
.Width, height);
Layouts\LayoutExtensions.cs (6)
39
var consumedWidth = view.
DesiredSize
.Width;
53
var consumedHeight = view.
DesiredSize
.Height;
75
var desiredWidth = view.
DesiredSize
.Width;
112
var desiredHeight = view.
DesiredSize
.Height;
225
bounds.Width = Math.Max(bounds.Width, presentedContent.
DesiredSize
.Width + padding.HorizontalThickness);
226
bounds.Height = Math.Max(bounds.Height, presentedContent.
DesiredSize
.Height + padding.VerticalThickness);
Layouts\VerticalStackLayoutManager.cs (1)
63
var destination = new Rect(left, stackHeight, width, child.
DesiredSize
.Height);
Microsoft.Maui.Controls (2)
Layout\FlexLayout.cs (1)
524
request = child.
DesiredSize
;
ScrollView\ScrollView.cs (1)
457
return content.
DesiredSize
;