25 writes to Height
Microsoft.Maui (2)
Layouts\LayoutExtensions.cs (1)
194
size.
Height
= Math.Max(bounds.Height, size.Height);
Platform\iOS\MauiLabel.cs (1)
77
Height
= nfloat.Min(requestedSize.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)
1146
request.
Height
= heightRequest;
1148
minimum.
Height
= heightRequest;
1162
minimum.
Height
= minimumHeightRequest;
1166
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;
171 references to Height
Microsoft.Maui (39)
Animations\AnimationLerpingExtensions.cs (2)
30
new Size(start.Width.Lerp(end.Width, progress), start.
Height
.Lerp(end.
Height
, progress));
Handlers\CheckBox\CheckBoxHandler.iOS.cs (1)
60
if (size.
Height
== 0)
Handlers\ScrollView\ScrollViewHandler.iOS.cs (3)
161
var height = contentSize.
Height
<= heightConstraint ? contentSize.
Height
: heightConstraint;
191
return new Size(contentSize.Width + inset.HorizontalThickness, contentSize.
Height
+ inset.VerticalThickness);
Handlers\ViewHandlerExtensions.iOS.cs (2)
112
if (double.IsInfinity(size.Width) || double.IsInfinity(size.
Height
))
119
var finalHeight = ResolveConstraints(size.
Height
, virtualView.Height, virtualView.MinimumHeight, virtualView.MaximumHeight);
Handlers\WebView\WebViewHandler.iOS.cs (1)
111
if (size.
Height
== 0)
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
);
Platform\iOS\CoreGraphicsExtensions.cs (1)
23
return new CGSize(size.Width, size.
Height
);
Platform\iOS\MauiSwipeView.cs (2)
345
float swipeItemHeight = (float)swipeItemSize.
Height
;
940
swipeItemsHeight += (float)swipeItemSize.
Height
;
Platform\iOS\SwipeViewExtensions.cs (4)
55
swipeItemHeight = threshold > swipeItemViewSizeRequest.
Height
? threshold : (float)swipeItemViewSizeRequest.
Height
;
86
if (swipeItemViewSizeRequest.
Height
> itemHeight)
87
itemHeight = swipeItemViewSizeRequest.
Height
;
Platform\iOS\ViewExtensions.cs (1)
521
var platformFrame = new CGRect(0, 0, size.Width, size.
Height
);
Platform\iOS\WindowViewController.cs (2)
169
iTitleBar.Arrange(new Graphics.Rect(0, 0, View.Bounds.Width, measured.
Height
));
170
titleBarHeight = (nfloat)measured.
Height
;
Primitives\Thickness.cs (2)
57
return new Thickness(size.Width, size.
Height
, size.Width, size.
Height
);
Microsoft.Maui.Controls (109)
Button\Button.iOS.cs (1)
149
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 (1)
555
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
);
Handlers\Items2\ItemsViewHandler2.iOS.cs (2)
189
var height = contentSize.
Height
<= heightConstraint ? contentSize.
Height
: heightConstraint;
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)
187
frameSize.
Height
+ margin.VerticalThickness);
319
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)
1166
minimum.Height = Math.Min(request.
Height
, minimum.
Height
);
1171
if (r.Request.Width > 0 && r.Request.
Height
> 0)
1216
result.Minimum = new Size(result.Minimum.Width + margin.HorizontalThickness, result.Minimum.
Height
+ margin.VerticalThickness);
1217
result.Request = new Size(result.Request.Width + margin.HorizontalThickness, result.Request.
Height
+ margin.VerticalThickness);
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
);