5 writes to Request
Microsoft.Maui (2)
Primitives\SizeRequest.cs (2)
24
Request
= request;
31
Request
= request;
Microsoft.Maui.Controls (3)
ContentPresenter.cs (1)
64
Request
= new Size { Width = widthRequest != -1 ? widthRequest : childRequest.Request.Width, Height = heightRequest != -1 ? heightRequest : childRequest.Request.Height },
TemplatedView\TemplatedView.cs (1)
60
Request
= new Size { Width = widthRequest != -1 ? widthRequest : childRequest.Request.Width, Height = heightRequest != -1 ? heightRequest : childRequest.Request.Height },
VisualElement\VisualElement.cs (1)
1217
result.
Request
= new Size(result.Request.Width + margin.HorizontalThickness, result.Request.Height + margin.VerticalThickness);
71 references to Request
Microsoft.Maui (5)
Primitives\SizeRequest.cs (5)
38
return string.Format("{{Request={0} Minimum={1}}}",
Request
, Minimum);
41
public bool Equals(SizeRequest other) =>
Request
.Equals(other.
Request
) && Minimum.Equals(other.Minimum);
45
public static implicit operator Size(SizeRequest size) => size.
Request
;
49
public override int GetHashCode() =>
Request
.GetHashCode() ^ Minimum.GetHashCode();
Microsoft.Maui.Controls (66)
Compatibility\Handlers\VisualElementRenderer.cs (1)
148
var size = sizeRequest.
Request
;
ContentPresenter.cs (2)
64
Request = new Size { Width = widthRequest != -1 ? widthRequest : childRequest.
Request
.Width, Height = heightRequest != -1 ? heightRequest : childRequest.
Request
.Height },
ImageElement.cs (4)
48
double desiredAspect = desiredSize.
Request
.Width / desiredSize.
Request
.Height;
51
double desiredWidth = desiredSize.
Request
.Width;
52
double desiredHeight = desiredSize.
Request
.Height;
LegacyLayouts\AbsoluteLayout.cs (10)
103
bestFitSize.Width = Math.Max(bestFitSize.Width, desiredSize.
Request
.Width);
104
bestFitSize.Height = Math.Max(bestFitSize.Height, desiredSize.
Request
.Height);
198
width += sizeRequest.Value.
Request
.Width;
204
width += sizeRequest.Value.
Request
.Width / Math.Max(0.25, bounds.Width);
217
height += sizeRequest.Value.
Request
.Height;
223
height += sizeRequest.Value.
Request
.Height / Math.Max(0.25, bounds.Height);
266
result.Width = sizeRequest.
Request
.Width;
267
result.Height = sizeRequest.
Request
.Height;
273
result.Width = sizeRequest.
Request
.Width;
280
result.Height = sizeRequest.
Request
.Height;
LegacyLayouts\FlexLayout.cs (1)
314
var request = view.Measure(sizeConstrains.Width, sizeConstrains.Height, MeasureFlags.None).
Request
;
LegacyLayouts\GridCalc.cs (8)
201
actualHeight = Math.Max(actualHeight, sizeRequest.
Request
.Height - assignedHeight - grid.RowSpacing * (GetRowSpan(child) - 1));
234
actualWidth = Math.Max(actualWidth, sizeRequest.
Request
.Width - assignedWidth - (GetColumnSpan(child) - 1) * grid.ColumnSpacing);
545
double requiredWidth = expandToRequest ? sizeRequest.
Request
.Width : sizeRequest.Minimum.Width;
576
? sizeRequest.
Request
.Height
577
: sizeRequest.
Request
.Height <= h ? sizeRequest.
Request
.Height : sizeRequest.Minimum.Height;
677
actualWidth = Math.Max(actualWidth, sizeRequest.
Request
.Width - assignedWidth - columnSpacing);
738
actualHeight = Math.Max(actualHeight, sizeRequest.
Request
.Height - assignedHeight - rowSpacing);
LegacyLayouts\Layout.cs (11)
205
return new SizeRequest(new Size(size.
Request
.Width + Padding.HorizontalThickness, size.
Request
.Height + Padding.VerticalThickness),
249
double diff = Math.Max(0, region.Width - request.
Request
.Width);
266
double diff = Math.Max(0, region.Height - request.
Request
.Height);
393
var sansMargins = OnMeasure(widthConstraint, heightConstraint).
Request
;
503
if (region.Size != childSizeRequest.
Request
)
505
bool canUseAlreadyDoneRequest = region.Width >= childSizeRequest.
Request
.Width && region.Height >= childSizeRequest.
Request
.Height;
513
double diff = Math.Max(0, region.Width - request.
Request
.Width);
530
double diff = Math.Max(0, region.Height - request.
Request
.Height);
744
return OnMeasure(widthConstraint, heightConstraint).
Request
;
LegacyLayouts\RelativeLayout.cs (4)
310
width = () => view.Measure(Width, heightConstraint != null ? height() : Height, MeasureFlags.IncludeMargins).
Request
.Width;
321
height = () => view.Measure(widthConstraint != null ? width() : Width, Height, MeasureFlags.IncludeMargins).
Request
.Height;
373
Func<double> widthCompiled = width != null ? width.Compile() : () => view.Measure(Parent.Width, Parent.Height, MeasureFlags.IncludeMargins).
Request
.Width;
374
Func<double> heightCompiled = height != null ? height.Compile() : () => view.Measure(Parent.Width, Parent.Height, MeasureFlags.IncludeMargins).
Request
.Height;
LegacyLayouts\StackLayout.cs (16)
175
var bounds = new Rect(x, yOffset, request.
Request
.Width, request.
Request
.Height);
178
layout.CompressionSpace += Math.Max(0, request.
Request
.Height - request.Minimum.Height);
181
boundsWidth = Math.Max(boundsWidth, request.
Request
.Width);
210
var bounds = new Rect(xOffset, y, request.
Request
.Width, request.
Request
.Height);
213
layout.CompressionSpace += Math.Max(0, request.
Request
.Width - request.Minimum.Width);
217
boundsHeight = Math.Max(boundsHeight, request.
Request
.Height);
269
plot.Height = newRequest.
Request
.Height;
271
if (newRequest.
Request
.Width < newWidth)
273
double delta = newWidth - newRequest.
Request
.Width;
274
newWidth = newRequest.
Request
.Width;
341
plot.Width = newRequest.
Request
.Width;
343
if (newRequest.
Request
.Height < newHeight)
345
double delta = newHeight - newRequest.
Request
.Height;
346
newHeight = newRequest.
Request
.Height;
TemplatedView\TemplatedView.cs (2)
60
Request = new Size { Width = widthRequest != -1 ? widthRequest : childRequest.
Request
.Width, Height = heightRequest != -1 ? heightRequest : childRequest.
Request
.Height },
VisualElement\VisualElement.cs (7)
1140
bool hasMinimum = result.Minimum != result.
Request
;
1141
Size request = result.
Request
;
1171
if (r.
Request
.Width > 0 && r.
Request
.Height > 0)
1217
result.Request = new Size(result.
Request
.Width + margin.HorizontalThickness, result.
Request
.Height + margin.VerticalThickness);
1220
DesiredSize = result.
Request
;