24 writes to Height
Microsoft.Maui (1)
Layouts\LayoutExtensions.cs (1)
194 size.Height = Math.Max(bounds.Height, size.Height);
Microsoft.Maui.Controls (20)
ContentPresenter.cs (1)
64 Request = new Size { Width = widthRequest != -1 ? widthRequest : childRequest.Request.Width, Height = heightRequest != -1 ? heightRequest : childRequest.Request.Height },
Handlers\Items\iOS\HeightConstrainedTemplatedCell.cs (1)
45 desiredBounds.Height = bounds.Height;
Handlers\Items\ItemsViewHandler.iOS.cs (2)
170 size.Height = contentSize.Height <= heightConstraint ? contentSize.Height : heightConstraint; 175 size.Height = ViewHandlerExtensions.ResolveConstraints(size.Height, virtualView.Height, virtualView.MinimumHeight, virtualView.MaximumHeight);
Layout\FlexLayout.cs (2)
507 sizeConstraints.Height = (inMeasureMode && sizeConstraints.Height == 0) ? double.PositiveInfinity : sizeConstraints.Height; 516 sizeConstraints.Height = double.PositiveInfinity;
LegacyLayouts\AbsoluteLayout.cs (2)
104 bestFitSize.Height = Math.Max(bestFitSize.Height, desiredSize.Request.Height); 106 minimum.Height = Math.Max(minimum.Height, desiredSize.Minimum.Height);
LegacyLayouts\FlexLayout.cs (1)
313 sizeConstrains.Height = (inMeasureMode && sizeConstrains.Height == 0) ? double.PositiveInfinity : sizeConstrains.Height;
Shapes\Shape.cs (6)
388 result.Height = boundsByFlattening.Height; 402 result.Height += pathBounds.Y; 409 result.Height = heightConstraint; 422 result.Height *= minScale; 434 result.Height *= maxScale; 440 result.Height += StrokeThickness;
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 (4)
1143 request.Height = heightRequest; 1145 minimum.Height = heightRequest; 1159 minimum.Height = minimumHeightRequest; 1163 minimum.Height = Math.Min(request.Height, minimum.Height);
Microsoft.Maui.Graphics (3)
Size.cs (3)
18 Height = size; 24 Height = height; 30 Height = vector.Y;
196 references to Height
Microsoft.Maui (22)
Animations\AnimationLerpingExtensions.cs (2)
30 new Size(start.Width.Lerp(end.Width, progress), start.Height.Lerp(end.Height, progress));
Layouts\AbsoluteLayoutManager.cs (2)
47 var height = ResolveDimension(isHeightProportional, bounds.Height, availableHeight, measure.Height); 84 destination.Height = ResolveDimension(isHeightProportional, destination.Height, availableHeight, child.DesiredSize.Height);
Layouts\GridLayoutManager.cs (7)
424 _rows[cell.Row].Update(measure.Height); 428 TrackSpan(new Span(cell.Row, cell.RowSpan, false, measure.Height)); 491 TrackSpan(new Span(cell.Row, cell.RowSpan, false, measure.Height)); 497 _rows[cell.Row].Update(measure.Height); 689 static double getDimension(Size size) => size.Height; 726 var cellRequiredHeight = Math.Min(_gridHeightConstraint, _childrenToLayOut[cell.ViewIndex].DesiredSize.Height); 819 ExpandStarDefinitions(_rows, targetSize.Height - _padding.VerticalThickness, GridMinimumHeight() - _padding.VerticalThickness,
Layouts\HorizontalStackLayoutManager.cs (1)
32 measuredHeight = Math.Max(measuredHeight, measure.Height);
Layouts\LayoutExtensions.cs (6)
31 measureWithoutMargins.Height + margin.VerticalThickness); 53 var consumedHeight = view.DesiredSize.Height; 112 var desiredHeight = view.DesiredSize.Height; 167 return new Size(contentSize.Width + inset.HorizontalThickness, contentSize.Height + inset.VerticalThickness); 194 size.Height = Math.Max(bounds.Height, size.Height); 226 bounds.Height = Math.Max(bounds.Height, presentedContent.DesiredSize.Height + padding.VerticalThickness);
Layouts\VerticalStackLayoutManager.cs (2)
32 measuredHeight += measure.Height; 63 var destination = new Rect(left, stackHeight, width, child.DesiredSize.Height);
Primitives\Thickness.cs (2)
57 return new Thickness(size.Width, size.Height, size.Width, size.Height);
Microsoft.Maui.Controls (108)
Button\Button.iOS.cs (1)
162 return new Size((int)Math.Ceiling(returnSize.Width), (int)Math.Ceiling(returnSize.Height));
Compatibility\Handlers\FlyoutPage\iOS\PhoneFlyoutPageRenderer.cs (1)
115 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height));
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (3)
362 var platformFrame = new RectangleF(0, 0, size.Width, size.Height); 382 var platformFrame = new RectangleF(0, 0, size.Width, size.Height); 947 var height = (nfloat)req.Height;
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (1)
136 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height));
Compatibility\Handlers\Shell\iOS\ShellTableViewSource.cs (2)
131 if (request.Height > defaultHeight) 132 height = (float)request.Height;
Compatibility\Handlers\Shell\iOS\UIContainerView.cs (1)
96 MeasuredHeight = measuredSize.Height;
Compatibility\Handlers\VisualElementRenderer.cs (12)
132 if (size.Height < minSize.Height || size.Width < minSize.Width) 136 size.Height < minSize.Height ? minSize.Height : size.Height 150 if (size.Height < minSize.Height || size.Width < minSize.Width) 154 size.Height < minSize.Height ? minSize.Height : size.Height
Compatibility\iOS\Extensions\UIViewExtensions.cs (1)
50 minimumHeight < 0 ? request.Height : minimumHeight);
ContentPresenter.cs (1)
64 Request = new Size { Width = widthRequest != -1 ? widthRequest : childRequest.Request.Width, Height = heightRequest != -1 ? heightRequest : childRequest.Request.Height },
Handlers\Items\iOS\ItemsViewController.cs (2)
545 emptyViewHeight = (nfloat)emptyView.Measure(CollectionView.Frame.Width, double.PositiveInfinity).Height; 560 formsElement.Arrange(new Rect(0, 0, CollectionView.Frame.Width, request.Height));
Handlers\Items\iOS\SizeExtensions.cs (1)
29 if (Math.Abs(sizeA.Height - sizeB.Height) > Tolerance)
Handlers\Items\iOS\VerticalCell.cs (1)
23 return new CGSize(ConstrainedDimension, measure.Height);
Handlers\Items\iOS\VerticalSupplementaryView.cs (1)
29 ? PlatformHandler.VirtualView.Height : measure.Height;
Handlers\Items\iOS\WidthConstrainedTemplatedCell.cs (2)
38 if (desiredBounds.Height == currentSize.Height)
Handlers\Items\ItemsViewHandler.iOS.cs (3)
170 size.Height = contentSize.Height <= heightConstraint ? contentSize.Height : heightConstraint; 175 size.Height = ViewHandlerExtensions.ResolveConstraints(size.Height, virtualView.Height, virtualView.MinimumHeight, virtualView.MaximumHeight);
Handlers\Items2\iOS\TemplatedCell2.cs (1)
86 preferredAttributes.Frame.Width, measure.Height);
ImageElement.cs (2)
48 double desiredAspect = desiredSize.Request.Width / desiredSize.Request.Height; 52 double desiredHeight = desiredSize.Request.Height;
Items\ItemsView.cs (1)
200 var maxHeight = Math.Min(scaled.Height, heightConstraint);
Layout\FlexLayout.cs (4)
507 sizeConstraints.Height = (inMeasureMode && sizeConstraints.Height == 0) ? double.PositiveInfinity : sizeConstraints.Height; 519 request = child.Measure(sizeConstraints.Width, sizeConstraints.Height); 527 h = (float)request.Height;
LegacyLayouts\AbsoluteLayout.cs (13)
104 bestFitSize.Height = Math.Max(bestFitSize.Height, desiredSize.Request.Height); 106 minimum.Height = Math.Max(minimum.Height, desiredSize.Minimum.Height); 217 height += sizeRequest.Value.Request.Height; 218 minHeight += sizeRequest.Value.Minimum.Height; 223 height += sizeRequest.Value.Request.Height / Math.Max(0.25, bounds.Height); 253 result.Height = DeviceDisplay.MainDisplayInfo.DisplayRound(region.Height * bounds.Height); 265 sizeRequest = view.Measure(region.Width, region.Height, MeasureFlags.IncludeMargins); 267 result.Height = sizeRequest.Request.Height; 279 sizeRequest = view.Measure(result.Width, region.Height, MeasureFlags.IncludeMargins); 280 result.Height = sizeRequest.Request.Height; 294 result.Y = Math.Round((region.Height - result.Height) * bounds.Y);
LegacyLayouts\FlexLayout.cs (4)
313 sizeConstrains.Height = (inMeasureMode && sizeConstrains.Height == 0) ? double.PositiveInfinity : sizeConstrains.Height; 314 var request = view.Measure(sizeConstrains.Width, sizeConstrains.Height, MeasureFlags.None).Request; 316 h = (float)request.Height;
LegacyLayouts\GridCalc.cs (12)
201 actualHeight = Math.Max(actualHeight, sizeRequest.Request.Height - assignedHeight - grid.RowSpacing * (GetRowSpan(child) - 1)); 202 minimumHeight = Math.Max(minimumHeight, sizeRequest.Minimum.Height - assignedHeight - grid.RowSpacing * (GetRowSpan(child) - 1)); 337 if (currentSize.Height <= targetHeight) 352 double contractionNeeded = Math.Min(contractionSpace, Math.Max(currentSize.Height - targetHeight, 0)); 433 if (request.Height <= targetHeight) 473 double contractionNeeded = Math.Min(contractionSpace, Math.Max(request.Height - targetHeight, 0)); 576 ? sizeRequest.Request.Height 577 : sizeRequest.Request.Height <= h ? sizeRequest.Request.Height : sizeRequest.Minimum.Height; 738 actualHeight = Math.Max(actualHeight, sizeRequest.Request.Height - assignedHeight - rowSpacing); 739 minimumHeight = Math.Max(minimumHeight, sizeRequest.Minimum.Height - assignedHeight - rowSpacing);
LegacyLayouts\Layout.cs (6)
205 return new SizeRequest(new Size(size.Request.Width + Padding.HorizontalThickness, size.Request.Height + Padding.VerticalThickness), 206 new Size(size.Minimum.Width + Padding.HorizontalThickness, size.Minimum.Height + Padding.VerticalThickness)); 266 double diff = Math.Max(0, region.Height - request.Request.Height); 395 return new Size(sansMargins.Width + Margin.HorizontalThickness, sansMargins.Height + Margin.VerticalThickness); 505 bool canUseAlreadyDoneRequest = region.Width >= childSizeRequest.Request.Width && region.Height >= childSizeRequest.Request.Height; 530 double diff = Math.Max(0, region.Height - request.Request.Height);
LegacyLayouts\RelativeLayout.cs (2)
321 height = () => view.Measure(widthConstraint != null ? width() : Width, Height, MeasureFlags.IncludeMargins).Request.Height; 374 Func<double> heightCompiled = height != null ? height.Compile() : () => view.Measure(Parent.Width, Parent.Height, MeasureFlags.IncludeMargins).Request.Height;
LegacyLayouts\StackLayout.cs (13)
58 if (width == layoutInformationCopy.Constraint.Width && height == layoutInformationCopy.Constraint.Height) 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); 183 minimumHeight += request.Minimum.Height + spacing; 210 var bounds = new Rect(xOffset, y, request.Request.Width, request.Request.Height); 217 boundsHeight = Math.Max(boundsHeight, request.Request.Height); 219 minimumHeight = Math.Max(minimumHeight, request.Minimum.Height); 269 plot.Height = newRequest.Request.Height; 327 double availableSpace = plot.Height - minimum.Height; 343 if (newRequest.Request.Height < newHeight) 345 double delta = newHeight - newRequest.Request.Height; 346 newHeight = newRequest.Request.Height;
ListView\ListView.cs (2)
428 double width = Math.Min(scaled.Width, scaled.Height); 439 request = new Size(width, Math.Max(scaled.Width, scaled.Height));
ScrollView\ScrollView.cs (2)
185 frameSize.Height + margin.VerticalThickness); 317 contentRequest.Minimum = new Size(Math.Min(40, contentRequest.Minimum.Width), Math.Min(40, contentRequest.Minimum.Height));
Shapes\GeometryHelper.cs (1)
212 arcSeg.Size.Height,
Shapes\PathFigureCollectionConverter.cs (1)
641 .Append(arcSegment.Size.Height)
Shapes\PathGeometry.cs (1)
106 arcSegment.Size.Height,
Shapes\Shape.cs (2)
378 if (result.Width != 0 && result.Height != 0) 395 double scaleY = heightConstraint / result.Height;
TableView\TableView.cs (2)
139 double width = Math.Min(scaled.Width, scaled.Height); 140 var request = new Size(width, Math.Max(scaled.Width, scaled.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 (5)
1163 minimum.Height = Math.Min(request.Height, minimum.Height); 1168 if (r.Request.Width > 0 && r.Request.Height > 0) 1213 result.Minimum = new Size(result.Minimum.Width + margin.HorizontalThickness, result.Minimum.Height + margin.VerticalThickness); 1214 result.Request = new Size(result.Request.Width + margin.HorizontalThickness, result.Request.Height + margin.VerticalThickness);
Microsoft.Maui.Controls.Compatibility (43)
iOS\Cells\ViewCellRenderer.cs (1)
129 var finalheight = (float)result.Request.Height + (SupressSeparator ? 0f : 1f) / UIScreen.MainScreen.Scale;
iOS\CollectionView\ItemsViewController.cs (1)
395 Controls.Compatibility.Layout.LayoutChildIntoBoundingRegion(formsElement, new Rect(0, 0, CollectionView.Frame.Width, request.Request.Height));
iOS\CollectionView\TemplatedCell.cs (1)
279 if (Math.Abs(preferredSize.Height - elementSize.Height) > tolerance)
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)
iOS\Extensions\CompatibilityColorExtensions.cs (1)
57 return new SizeF((float)size.Width, (float)size.Height);
iOS\Extensions\GeometryExtensions.cs (1)
180 arcSegment.Size.Height,
iOS\HandlerToRendererShim.cs (1)
80 Layout.LayoutChildIntoBoundingRegion(Element, new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\Renderers\CarouselPageRenderer.cs (1)
79 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\Renderers\CheckBoxRendererBase.cs (1)
70 if (sizeConstraint.Request.Height == 0)
iOS\Renderers\IndicatorViewRenderer.cs (1)
169 indicatorLayout.Layout(new Rect(0, 0, indicatorLayoutSizeRequest.Request.Width, indicatorLayoutSizeRequest.Request.Height));
iOS\Renderers\LabelRenderer.cs (4)
63 _perfectSize.Minimum = new Size(Math.Min(10, _perfectSize.Request.Width), _perfectSize.Request.Height); 68 var heightFits = heightConstraint >= _perfectSize.Request.Height; 75 result.Minimum = new Size(tinyWidth, result.Request.Height); 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\NavigationRenderer.cs (3)
90 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height)); 194 new Rect(0, toolbar.Hidden ? 0 : toolbar.Frame.Height, modelSize.Width, modelSize.Height - trueBottom); 198 Element.Layout(new Rect(Element.X, Element.Y, _queuedSize.Width, _queuedSize.Height));
iOS\Renderers\PageRenderer.cs (2)
100 var rect = new CoreGraphics.CGRect(Element.X, Element.Y, size.Width, size.Height); 104 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\Renderers\PhoneFlyoutPageRenderer.cs (1)
103 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\Renderers\ScrollViewRenderer.cs (1)
121 Layout.LayoutChildIntoBoundingRegion(Element, new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\Renderers\SwipeViewRenderer.cs (6)
518 float swipeItemHeight = (float)swipeItemSize.Height; 640 swipeItemView.Layout(new Rect(0, 0, swipeItemSize.Width, swipeItemSize.Height)); 1257 swipeItemsHeight += (float)swipeItemSize.Height; 1344 swipeItemHeight = threshold > swipeItemViewSizeRequest.Request.Height ? threshold : (float)swipeItemViewSizeRequest.Request.Height; 1368 itemsHeight.Add(swipeItemViewSizeRequest.Request.Height);
iOS\Renderers\TabbedRenderer.cs (2)
99 Element.Layout(new Rect(Element.X, Element.Y, size.Width, size.Height)); 151 Element.Layout(new Rect(Element.X, Element.Y, _queuedSize.Width, _queuedSize.Height));
iOS\Renderers\TabletFlyoutPageRenderer.cs (1)
232 Element.Layout(new Rect(Element.X, Element.Width, size.Width, size.Height));
iOS\Renderers\UIContainerView.cs (1)
77 MeasuredHeight = request.Request.Height;
iOS\Renderers\WkWebViewRenderer.cs (1)
135 Layout.LayoutChildIntoBoundingRegion(Element, new Rect(Element.X, Element.Y, size.Width, size.Height));
iOS\VisualElementRenderer.cs (1)
168 Layout.LayoutChildIntoBoundingRegion(Element, new Rect(Element.X, Element.Y, size.Width, size.Height));
Microsoft.Maui.Graphics (23)
Converters\SizeTypeConverter.cs (1)
43 return $"{size.Width.ToString(CultureInfo.InvariantCulture)}, {size.Height.ToString(CultureInfo.InvariantCulture)}";
Point.cs (1)
33 Y = sz.Height;
Rect.cs (3)
36 public Rect(Point loc, Size sz) : this(loc.X, loc.Y, sz.Width, sz.Height) 162 Height = value.Height; 181 return Inflate(sz.Width, sz.Height);
Size.cs (18)
33 public bool IsZero => Width == 0 && Height == 0; 43 return new Size(s1.Width + s2.Width, s1.Height + s2.Height); 48 return new Size(s1.Width - s2.Width, s1.Height - s2.Height); 53 return new Size(s1.Width * value, s1.Height * value); 58 return new Size(s1.Width / value, s1.Height / value); 63 return s1.Width == s2.Width && s1.Height == s2.Height; 68 return s1.Width != s2.Width || s1.Height != s2.Height; 73 return new Point(size.Width, size.Height); 78 return Width.Equals(other.Width) && Height.Equals(other.Height); 92 return (Width.GetHashCode() * 397) ^ Height.GetHashCode(); 98 return string.Format("{{Width={0} Height={1}}}", Width.ToString(CultureInfo.InvariantCulture), Height.ToString(CultureInfo.InvariantCulture)); 104 height = Height; 106 public static implicit operator SizeF(Size s) => new SizeF((float)s.Width, (float)s.Height);