29 writes to Height
Microsoft.Maui (4)
Layouts\AbsoluteLayoutManager.cs (1)
84
destination.
Height
= ResolveDimension(isHeightProportional, destination.Height, availableHeight, child.DesiredSize.Height);
Layouts\LayoutExtensions.cs (1)
226
bounds.
Height
= Math.Max(bounds.Height, presentedContent.DesiredSize.Height + padding.VerticalThickness);
VisualDiagnostics\AdornerModel.cs (2)
74
rc.
Height
= Math.Abs(margin.Top);
85
rc.
Height
= Math.Abs(margin.Bottom);
Microsoft.Maui.Controls (21)
LegacyLayouts\AbsoluteLayout.cs (4)
253
result.
Height
= DeviceDisplay.MainDisplayInfo.DisplayRound(region.Height * bounds.Height);
257
result.
Height
= bounds.Height;
267
result.
Height
= sizeRequest.Request.Height;
280
result.
Height
= sizeRequest.Request.Height;
LegacyLayouts\Layout.cs (4)
268
region.
Height
-= diff;
275
region.
Height
-= margin.VerticalThickness;
532
region.
Height
-= diff;
540
region.
Height
-= margin.VerticalThickness;
LegacyLayouts\StackLayout.cs (6)
118
layout.Plots[i].
Height
= heightConstraint;
269
plot.
Height
= newRequest.Request.Height;
281
layout.Bounds.
Height
= Math.Max(layout.Bounds.Height, plot.Height);
351
plot.
Height
= newHeight;
434
plot.
Height
+= spacePerExpander;
441
layout.Bounds.
Height
= heightConstraint;
Page\Page.cs (2)
425
area.
Height
-= Padding.VerticalThickness;
427
area.
Height
= Math.Max(0, area.Height);
Region.cs (1)
113
region.
Height
+= bottom + top;
Shapes\Matrix.cs (3)
712
rect.
Height
*= matrix._m22;
723
rect.
Height
= -rect.Height;
748
rect.
Height
= Math.Max(Math.Max(point0.Y, point1.Y), Math.Max(point2.Y, point3.Y)) - rect.Y;
Shapes\Shape.cs (1)
286
viewBounds.
Height
-= StrokeThickness;
Microsoft.Maui.Graphics (4)
Rect.cs (4)
33
Height
= height;
139
set =>
Height
= value - Y;
162
Height
= value.Height;
190
r.
Height
+= height * 2;
146 references to Height
Microsoft.Maui (20)
Graphics\RectangleExtensions.cs (2)
18
rectangle.Width - (2 * inset), rectangle.
Height
- (2 * inset));
23
point.Y >= 0 && point.Y <= rect.
Height
;
Layouts\AbsoluteLayoutManager.cs (5)
42
var measureHeight = ResolveChildMeasureConstraint(bounds.
Height
, isHeightProportional, heightConstraint);
47
var height = ResolveDimension(isHeightProportional, bounds.
Height
, availableHeight, measure.Height);
66
double availableHeight = bounds.
Height
- padding.VerticalThickness;
84
destination.Height = ResolveDimension(isHeightProportional, destination.
Height
, availableHeight, child.DesiredSize.Height);
93
destination.Y = (availableHeight - destination.
Height
) * destination.Y;
Layouts\FlexLayoutManager.cs (2)
23
double availableHeight = bounds.
Height
- padding.VerticalThickness;
33
|| double.IsNaN(frame.
Height
))
Layouts\GridLayoutManager.cs (1)
34
_gridStructure ??= new GridStructure(Grid, bounds.Width, bounds.
Height
);
Layouts\HorizontalStackLayoutManager.cs (1)
53
var height = bounds.
Height
- padding.VerticalThickness;
Layouts\LayoutExtensions.cs (7)
60
consumedHeight = Math.Min(bounds.
Height
, view.MaximumHeight);
121
desiredHeight = IsExplicitSet(view.Height) ? desiredHeight : Math.Min(bounds.
Height
, view.MaximumHeight);
129
frameY += (bounds.
Height
- desiredHeight) / 2;
133
frameY += bounds.
Height
- desiredHeight;
180
bounds.Width - padding.HorizontalThickness, bounds.
Height
- padding.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 (1)
65
stackHeight += destination.
Height
+ Stack.Spacing;
VisualDiagnostics\RectangleGridAdorner.cs (1)
32
var height = (float)DrawnRectangle.
Height
;
Microsoft.Maui.Controls (63)
Button\Button.iOS.cs (2)
179
return new Size(bounds.Width, bounds.
Height
);
207
var titleRect = ComputeTitleRect(platformButton, button, image, size.Width, size.
Height
, borderWidth, padding, false);
Editor\Editor.cs (1)
170
(TheSame(_previousHeightConstraint, _previousBounds.
Height
) &&
Handlers\Items\iOS\HeightConstrainedTemplatedCell.cs (3)
31
if (bounds.Width <= 0 || bounds.
Height
<= 0)
36
var desiredBounds = PlatformHandler.VirtualView.Measure(double.PositiveInfinity, bounds.
Height
);
45
desiredBounds.Height = bounds.
Height
;
Handlers\Items\iOS\WidthConstrainedTemplatedCell.cs (1)
31
if (bounds.Width <= 0 || bounds.
Height
<= 0)
Layout\AndExpandLayoutManager.cs (1)
35
Measure(bounds.Width, bounds.
Height
);
Layout\BoundsTypeConverter.cs (2)
60
return $"{rect.X.ToString(CultureInfo.InvariantCulture)}, {rect.Y.ToString(CultureInfo.InvariantCulture)}, {(rect.Width == AbsoluteLayout.AutoSize ? nameof(AbsoluteLayout.AutoSize) : rect.Width.ToString(CultureInfo.InvariantCulture))}, {(rect.
Height
== AbsoluteLayout.AutoSize ? nameof(AbsoluteLayout.AutoSize) : rect.
Height
.ToString(CultureInfo.InvariantCulture))}";
LegacyLayouts\AbsoluteLayout.cs (12)
136
bool heightLocked = layoutBounds.
Height
!= AutoSize;
145
if (layoutBounds.
Height
!= AutoSize)
208
if (!heightIsProportional && bounds.
Height
!= AutoSize)
211
height += bounds.
Height
;
212
minHeight += bounds.
Height
;
223
height += sizeRequest.Value.Request.Height / Math.Max(0.25, bounds.
Height
);
253
result.Height = DeviceDisplay.MainDisplayInfo.DisplayRound(region.Height * bounds.
Height
);
255
else if (bounds.
Height
!= AutoSize)
257
result.Height = bounds.
Height
;
272
sizeRequest = view.Measure(region.Width, result.
Height
, MeasureFlags.IncludeMargins);
276
else if (!heightIsProportional && bounds.
Height
== AutoSize)
294
result.Y = Math.Round((region.Height - result.
Height
) * bounds.Y);
LegacyLayouts\FlexLayout.cs (1)
427
|| double.IsNaN(frame.
Height
))
LegacyLayouts\Layout.cs (10)
84
LayoutChildren(bounds.X, bounds.Y, bounds.Width, bounds.
Height
);
227
region = new Rect(parent.Width - region.Right, region.Y, region.Width, region.
Height
);
247
SizeRequest request = child.Measure(region.Width, region.
Height
, MeasureFlags.IncludeMargins);
264
SizeRequest request = child.Measure(region.Width, region.
Height
, MeasureFlags.IncludeMargins);
266
double diff = Math.Max(0, region.
Height
- request.Request.Height);
493
region = new Rect(parent.Width - region.Right, region.Y, region.Width, region.
Height
);
505
bool canUseAlreadyDoneRequest = region.Width >= childSizeRequest.Request.Width && region.
Height
>= childSizeRequest.Request.Height;
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);
530
double diff = Math.Max(0, region.
Height
- request.Request.Height);
LegacyLayouts\StackLayout.cs (7)
281
layout.Bounds.Height = Math.Max(layout.Bounds.
Height
, plot.
Height
);
306
if (heightConstraint >= layout.Bounds.
Height
)
312
double requiredCompression = layout.Bounds.
Height
- heightConstraint;
327
double availableSpace = plot.
Height
- minimum.Height;
336
double newHeight = plot.
Height
- compression;
417
double extraSpace = heightConstraint - layout.Bounds.
Height
;
Page\Page.cs (1)
427
area.Height = Math.Max(0, area.
Height
);
Shapes\Matrix.cs (3)
720
if (rect.
Height
< 0.0)
722
rect.Y += rect.
Height
;
723
rect.Height = -rect.
Height
;
Shapes\RectangleGeometry.cs (1)
38
float h = (float)Rect.
Height
;
Shapes\RoundRectangle.cs (2)
75
_fallbackHeight = viewBounds.
Height
;
106
_fallbackHeight = viewBounds.
Height
;
Shapes\RoundRectangleGeometry.cs (7)
84
new EllipseGeometry(new Point(Rect.Location.X + Rect.Width - CornerRadius.BottomRight, Rect.Location.Y + Rect.
Height
- CornerRadius.BottomRight), CornerRadius.BottomRight, CornerRadius.BottomRight));
88
new EllipseGeometry(new Point(Rect.Location.X + CornerRadius.BottomLeft, Rect.Location.Y + Rect.
Height
- CornerRadius.BottomLeft), CornerRadius.BottomLeft, CornerRadius.BottomLeft));
98
new LineSegment { Point = new Point(Rect.Location.X + Rect.Width, Rect.Location.Y + Rect.
Height
- CornerRadius.BottomRight) },
99
new LineSegment { Point = new Point(Rect.Location.X + Rect.Width - CornerRadius.BottomRight, Rect.Location.Y + Rect.
Height
) },
100
new LineSegment { Point = new Point(Rect.Location.X + CornerRadius.BottomLeft, Rect.Location.Y + Rect.
Height
) },
101
new LineSegment { Point = new Point(Rect.Location.X, Rect.Location.Y + Rect.
Height
- CornerRadius.BottomLeft) },
121
float h = (float)Rect.
Height
;
Shapes\Shape.cs (3)
265
_fallbackHeight = viewBounds.
Height
;
311
float calculatedHeight = (float)(viewBounds.
Height
/ pathBounds.Height);
338
(viewBounds.
Height
- minScale * pathBounds.Height) / 2));
ViewExtensions.cs (3)
100
double h = start.
Height
+ (bounds.
Height
- start.
Height
) * progress;
VisualElement\VisualElement.cs (1)
1762
Height = bounds.
Height
;
Window\Window.cs (2)
221
var shouldTriggerSizeChanged = (Width != frame.Width) || (Height != frame.
Height
);
226
SetValue(HeightProperty, frame.
Height
, SetterSpecificity.FromHandler);
Microsoft.Maui.Controls.Compatibility (5)
iOS\CollectionView\HeightConstrainedTemplatedCell.cs (2)
33
if (bounds.Width <= 0 || bounds.
Height
<= 0)
38
var desiredBounds = VisualElementRenderer.Element.Measure(double.PositiveInfinity, bounds.
Height
,
iOS\CollectionView\WidthConstrainedTemplatedCell.cs (1)
33
if (bounds.Width <= 0 || bounds.
Height
<= 0)
iOS\Extensions\CompatibilityColorExtensions.cs (1)
70
return new RectangleF((nfloat)rect.X, (nfloat)rect.Y, (nfloat)rect.Width, (nfloat)rect.
Height
);
iOS\Extensions\GeometryExtensions.cs (1)
40
pathData.Data.AddRect(transform, new CGRect(rect.X, rect.Y, rect.Width, rect.
Height
));
Microsoft.Maui.Controls.Foldable (33)
DualScreenInfo.cs (4)
189
return new[] { guide.Pane1, new Rect(0, hinge.
Height
+ guide.Pane1.
Height
, guide.Pane2.Width, guide.Pane2.
Height
) };
191
return new[] { guide.Pane1, new Rect(hinge.Width + guide.Pane1.Width, 0, guide.Pane2.Width, guide.Pane2.
Height
) };
TwoPaneView.cs (7)
480
rowMiddle.Height = new GridLength(hinge.
Height
, GridUnitType.Absolute);
481
rowTop.Height = new GridLength(pane1.
Height
, GridUnitType.Absolute);
482
rowBottom.Height = new GridLength(pane2.
Height
, GridUnitType.Absolute);
565
_content2.Padding = new Thickness(0, 0, 0, newHeight - pane1.
Height
);
584
_content1.Padding = new Thickness(0, 0, 0, newHeight - pane1.
Height
);
600
_content1.Padding = new Thickness(pane1.X, pane1.Y, newWidth - pane1.Width - pane1.X, newHeight - pane1.
Height
- pane1.Y);
618
_content2.Padding = new Thickness(pane1.X, pane1.Y, newWidth - pane1.Width - pane1.X, newHeight - pane1.
Height
- pane1.Y);
TwoPaneViewLayoutGuide.cs (22)
212
bool hingeIsVertical = Hinge.
Height
> Hinge.Width;
222
_newPane1 = new Rect(0, 0, Hinge.X - locationOnScreen.X, locationOnScreen.
Height
);
223
_newPane2 = new Rect(_newPane1.Width + Hinge.Width, 0, pane2Width, locationOnScreen.
Height
);
227
var pane2Y = Hinge.Y + Hinge.
Height
;
228
var containerBottomY = locationOnScreen.Y + locationOnScreen.
Height
;
232
_newPane2 = new Rect(0, _newPane1.
Height
+ Hinge.
Height
, locationOnScreen.Width, pane2Height);
247
_newPane1 = new Rect(0, 0, Hinge.X - locationOnScreen.X, locationOnScreen.
Height
);
253
_newPane1 = new Rect(amountObscured, 0, locationOnScreen.Width - amountObscured, locationOnScreen.
Height
);
256
_newPane1 = new Rect(0, 0, locationOnScreen.Width, locationOnScreen.
Height
);
263
var containerBottomY = locationOnScreen.Y + locationOnScreen.
Height
;
264
var hingeBottomY = Hinge.Y + Hinge.
Height
;
275
_newPane1 = new Rect(0, amountObscured, locationOnScreen.Width, locationOnScreen.
Height
- amountObscured);
278
_newPane1 = new Rect(0, 0, locationOnScreen.Width, locationOnScreen.
Height
);
284
if (_newPane2.
Height
< 0 || _newPane2.Width < 0)
287
if (_newPane1.
Height
< 0 || _newPane1.Width < 0)
315
bool hingeIsVertical = Hinge.
Height
> Hinge.Width;
320
if (layoutBounds.Y < hinge.Y && layoutBounds.Y + layoutBounds.
Height
> (hinge.Y + hinge.
Height
))
334
if (layoutBounds.Y < hinge.Y && layoutBounds.Y + layoutBounds.
Height
> (hinge.Y + hinge.
Height
))
361
if (hinge.
Height
> hinge.Width)
Microsoft.Maui.Graphics (25)
CanvasExtensions.cs (13)
12
target.DrawRectangle((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
);
22
target.FillRectangle((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
);
32
target.DrawRoundedRectangle((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
, (float)cornerRadius);
50
path.AppendRoundedRectangle((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
, (float)topLeftCornerRadius, (float)topRightCornerRadius, (float)bottomLeftCornerRadius, (float)bottomRightCornerRadius);
70
target.FillRoundedRectangle((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
, (float)cornerRadius);
88
path.AppendRoundedRectangle((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
, (float)topLeftCornerRadius, (float)topRightCornerRadius, (float)bottomLeftCornerRadius, (float)bottomRightCornerRadius);
108
target.DrawEllipse((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
);
118
target.FillEllipse((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
);
148
target.ClipRectangle((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
);
165
target.DrawString(value, (float)bounds.X, (float)bounds.Y, (float)bounds.Width, (float)bounds.
Height
, horizontalAlignment, verticalAlignment, textFlow, lineSpacingAdjustment);
282
canvas.DrawArc((float)bounds.X, (float)bounds.Y, (float)bounds.Width, (float)bounds.
Height
, startAngle, endAngle, clockwise, closed);
311
canvas.FillArc((float)bounds.X, (float)bounds.Y, (float)bounds.Width, (float)bounds.
Height
, startAngle, endAngle, clockwise);
370
target.SubtractFromClip((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
);
Converters\RectTypeConverter.cs (1)
48
return $"{r.X.ToString(CultureInfo.InvariantCulture)}, {r.Y.ToString(CultureInfo.InvariantCulture)}, {r.Width.ToString(CultureInfo.InvariantCulture)}, {r.
Height
.ToString(CultureInfo.InvariantCulture)}";
Rect.cs (11)
24
return string.Format("{{X={0} Y={1} Width={2} Height={3}}}", X.ToString(CultureInfo.InvariantCulture), Y.ToString(CultureInfo.InvariantCulture), Width.ToString(CultureInfo.InvariantCulture),
Height
.ToString(CultureInfo.InvariantCulture));
47
return X.Equals(other.X) && Y.Equals(other.Y) && Width.Equals(other.Width) &&
Height
.Equals(other.
Height
);
64
hashCode = (hashCode * 397) ^
Height
.GetHashCode();
138
get => Y +
Height
;
154
public bool IsEmpty => (Width <= 0) || (
Height
<= 0);
158
get => new Size(Width,
Height
);
176
public Point Center => new Point(X + Width / 2, Y +
Height
/ 2);
209
return new Rect(Math.Round(X), Math.Round(Y), Math.Round(Width), Math.Round(
Height
));
217
height =
Height
;
220
public static implicit operator RectF(Rect rect) => new RectF((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.
Height
);