1 override of Measure
Microsoft.Maui.Controls (1)
LegacyLayouts\Layout.cs (1)
198
public override SizeRequest
Measure
(double widthConstraint, double heightConstraint, MeasureFlags flags = MeasureFlags.None)
27 references to Measure
Microsoft.Maui.Controls (27)
ContentPresenter.cs (1)
59
childRequest = Content.
Measure
(widthConstraint, heightConstraint, MeasureFlags.IncludeMargins);
LegacyLayouts\AbsoluteLayout.cs (4)
166
var sizeRequest = new Lazy<SizeRequest>(() => view.
Measure
(double.PositiveInfinity, double.PositiveInfinity, MeasureFlags.IncludeMargins));
265
sizeRequest = view.
Measure
(region.Width, region.Height, MeasureFlags.IncludeMargins);
272
sizeRequest = view.
Measure
(region.Width, result.Height, MeasureFlags.IncludeMargins);
279
sizeRequest = view.
Measure
(result.Width, region.Height, MeasureFlags.IncludeMargins);
LegacyLayouts\FlexLayout.cs (1)
314
var request = view.
Measure
(sizeConstrains.Width, sizeConstrains.Height, MeasureFlags.None).Request;
LegacyLayouts\GridCalc.cs (6)
200
SizeRequest sizeRequest = child.
Measure
(widthRequest, heightRequest, MeasureFlags.IncludeMargins);
233
SizeRequest sizeRequest = child.
Measure
(widthRequest, heightRequest, MeasureFlags.IncludeMargins);
544
SizeRequest sizeRequest = child.
Measure
(w, GetAssignedRowHeight(child), MeasureFlags.IncludeMargins);
573
SizeRequest sizeRequest = child.
Measure
(acw, h, MeasureFlags.IncludeMargins);
675
SizeRequest sizeRequest = child.
Measure
(widthConstraint, hConstraint, MeasureFlags.IncludeMargins);
736
SizeRequest sizeRequest = child.
Measure
(wConstraint, heightConstraint, MeasureFlags.IncludeMargins);
LegacyLayouts\Layout.cs (5)
202
SizeRequest size = base.
Measure
(widthConstraint - Padding.HorizontalThickness, heightConstraint - Padding.VerticalThickness, flags);
247
SizeRequest request = child.
Measure
(region.Width, region.Height, MeasureFlags.IncludeMargins);
264
SizeRequest request = child.
Measure
(region.Width, region.Height, MeasureFlags.IncludeMargins);
511
SizeRequest request = canUseAlreadyDoneRequest ? childSizeRequest : child.
Measure
(region.Width, region.Height, MeasureFlags.IncludeMargins);
528
SizeRequest request = canUseAlreadyDoneRequest ? childSizeRequest : child.
Measure
(region.Width, region.Height, MeasureFlags.IncludeMargins);
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 (4)
173
SizeRequest request = child.
Measure
(widthConstraint, double.PositiveInfinity, MeasureFlags.IncludeMargins);
208
SizeRequest request = child.
Measure
(double.PositiveInfinity, heightConstraint, MeasureFlags.IncludeMargins);
265
SizeRequest newRequest = child.
Measure
(newWidth, heightConstraint, MeasureFlags.IncludeMargins);
337
SizeRequest newRequest = child.
Measure
(widthConstraint, newHeight, MeasureFlags.IncludeMargins);
ScrollView\ScrollView.cs (1)
314
contentRequest = Content.
Measure
(widthConstraint, heightConstraint, MeasureFlags.IncludeMargins);
TemplatedView\TemplatedView.cs (1)
55
childRequest = view.
Measure
(widthConstraint, heightConstraint, MeasureFlags.IncludeMargins);