6 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)
1214 result.Request = new Size(result.Request.Width + margin.HorizontalThickness, result.Request.Height + margin.VerticalThickness);
Microsoft.Maui.Controls.Compatibility (1)
iOS\Renderers\LabelRenderer.cs (1)
90 result.Request = new Size(expandedWidth, result.Request.Height);
110 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); 737 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)
1137 bool hasMinimum = result.Minimum != result.Request; 1138 Size request = result.Request; 1168 if (r.Request.Width > 0 && r.Request.Height > 0) 1214 result.Request = new Size(result.Request.Width + margin.HorizontalThickness, result.Request.Height + margin.VerticalThickness); 1217 DesiredSize = result.Request;
Microsoft.Maui.Controls.Compatibility (39)
iOS\Cells\ViewCellRenderer.cs (1)
129 var finalheight = (float)result.Request.Height + (SupressSeparator ? 0f : 1f) / UIScreen.MainScreen.Scale;
iOS\CollectionView\HeightConstrainedTemplatedCell.cs (2)
41 if (desiredBounds.Request.Width == currentSize.Width) 47 return (true, desiredBounds.Request);
iOS\CollectionView\HorizontalCell.cs (1)
24 return new CGSize(measure.Request.Width, ConstrainedDimension);
iOS\CollectionView\HorizontalTemplatedHeaderView.cs (1)
30 ? VisualElementRenderer.Element.Width : measure.Request.Width;
iOS\CollectionView\ItemsViewController.cs (2)
390 Controls.Compatibility.Layout.LayoutChildIntoBoundingRegion(formsElement, new Rect(0, 0, request.Request.Width, CollectionView.Frame.Height)); 395 Controls.Compatibility.Layout.LayoutChildIntoBoundingRegion(formsElement, new Rect(0, 0, CollectionView.Frame.Width, request.Request.Height));
iOS\CollectionView\VerticalCell.cs (1)
24 return new CGSize(ConstrainedDimension, measure.Request.Height);
iOS\CollectionView\VerticalSupplementaryView.cs (1)
30 ? VisualElementRenderer.Element.Height : measure.Request.Height;
iOS\CollectionView\WidthConstrainedTemplatedCell.cs (2)
41 if (desiredBounds.Request.Height == currentSize.Height) 47 return (true, desiredBounds.Request);
iOS\Renderers\CheckBoxRendererBase.cs (2)
61 if (sizeConstraint.Request.Width == 0) 70 if (sizeConstraint.Request.Height == 0)
iOS\Renderers\EntryRenderer.cs (1)
72 return new SizeRequest(new Size(baseResult.Request.Width, height));
iOS\Renderers\IndicatorViewRenderer.cs (2)
169 indicatorLayout.Layout(new Rect(0, 0, indicatorLayoutSizeRequest.Request.Width, indicatorLayoutSizeRequest.Request.Height));
iOS\Renderers\LabelRenderer.cs (8)
63 _perfectSize.Minimum = new Size(Math.Min(10, _perfectSize.Request.Width), _perfectSize.Request.Height); 67 var widthFits = widthConstraint >= _perfectSize.Request.Width; 68 var heightFits = heightConstraint >= _perfectSize.Request.Height; 74 var tinyWidth = Math.Min(10, result.Request.Width); 75 result.Minimum = new Size(tinyWidth, result.Request.Height); 85 bool textExceedsContainer = result.Request.Width > widthConstraint; 90 result.Request = new Size(expandedWidth, result.Request.Height);
iOS\Renderers\ListViewRenderer.cs (7)
85 Layout.LayoutChildIntoBoundingRegion(e, new Rect(0, 0, width, Math.Ceiling(request.Request.Height))); 98 Layout.LayoutChildIntoBoundingRegion(e, new Rect(0, 0, width, Math.Ceiling(request.Request.Height))); 406 Layout.LayoutChildIntoBoundingRegion(footerView, new Rect(0, 0, width, request.Request.Height)); 428 Layout.LayoutChildIntoBoundingRegion(headerView, new Rect(0, 0, width, request.Request.Height)); 499 Layout.LayoutChildIntoBoundingRegion(footerView, new Rect(0, 0, width, request.Request.Height)); 545 Layout.LayoutChildIntoBoundingRegion(headerView, new Rect(0, 0, width, request.Request.Height)); 971 var height = (nfloat)req.Request.Height;
iOS\Renderers\SwipeViewRenderer.cs (7)
1321 if (swipeItemViewSizeRequest.Request.Width > 0) 1322 swipeItemWidth = threshold > swipeItemViewSizeRequest.Request.Width ? threshold : swipeItemViewSizeRequest.Request.Width; 1343 if (swipeItemViewSizeRequest.Request.Width > 0) 1344 swipeItemHeight = threshold > swipeItemViewSizeRequest.Request.Height ? threshold : (float)swipeItemViewSizeRequest.Request.Height; 1368 itemsHeight.Add(swipeItemViewSizeRequest.Request.Height);
iOS\Renderers\UIContainerView.cs (1)
77 MeasuredHeight = request.Request.Height;