22 writes to Y
Microsoft.Maui (3)
Layouts\AbsoluteLayoutManager.cs (2)
93
destination.
Y
= (availableHeight - destination.Height) * destination.Y;
97
destination.
Y
+= top;
VisualDiagnostics\RectangleAdorner.cs (1)
85
box.
Y
= box.Y + Offset.Y;
Microsoft.Maui.Controls (14)
LegacyLayouts\AbsoluteLayout.cs (3)
76
rect.
Y
+= y;
294
result.
Y
= Math.Round((region.Height - result.Height) * bounds.Y);
298
result.
Y
= bounds.Y;
LegacyLayouts\Layout.cs (4)
267
region.
Y
+= (int)(diff * verticalOptions.Alignment.ToDouble());
274
region.
Y
+= margin.Top;
531
region.
Y
+= (int)(diff * verticalOptions.Alignment.ToDouble());
539
region.
Y
+= margin.Top;
LegacyLayouts\StackLayout.cs (2)
324
layout.Plots[i].
Y
-= yOffset;
430
plot.
Y
+= yOffset;
Page\Page.cs (1)
423
area.
Y
+= Padding.Right;
Shapes\Matrix.cs (3)
710
rect.
Y
*= matrix._m22;
722
rect.
Y
+= rect.Height;
745
rect.
Y
= Math.Min(Math.Min(point0.Y, point1.Y), Math.Min(point2.Y, point3.Y));
Shapes\Shape.cs (1)
284
viewBounds.
Y
+= StrokeThickness / 2;
Microsoft.Maui.Graphics (5)
Rect.cs (5)
31
Y
= y;
133
set =>
Y
= value;
172
Y
= value.Y;
188
r.
Y
-= height;
198
r.
Y
+= dy;
83 references to Y
Microsoft.Maui (7)
Layouts\AbsoluteLayoutManager.cs (1)
93
destination.Y = (availableHeight - destination.Height) * destination.
Y
;
Layouts\FlexLayoutManager.cs (1)
31
|| double.IsNaN(frame.
Y
)
Layouts\LayoutExtensions.cs (1)
124
double frameY = bounds.
Y
+ margin.Top;
Layouts\VerticalStackLayoutManager.cs (1)
50
double stackHeight = padding.Top + bounds.
Y
;
VisualDiagnostics\RectangleAdorner.cs (1)
85
box.Y = box.
Y
+ Offset.Y;
VisualDiagnostics\RectangleGridAdorner.cs (1)
29
var y = (float)DrawnRectangle.
Y
;
VisualDiagnostics\VisualDiagnosticsOverlay.cs (1)
155
parentScrollView.RequestScrollTo(platformView.X, platformView.
Y
, true);
Microsoft.Maui.Controls (17)
Layout\BoundsTypeConverter.cs (1)
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 (3)
183
height += bounds.
Y
;
294
result.Y = Math.Round((region.Height - result.Height) * bounds.
Y
);
298
result.Y = bounds.
Y
;
LegacyLayouts\FlexLayout.cs (1)
425
|| double.IsNaN(frame.
Y
)
LegacyLayouts\Layout.cs (4)
84
LayoutChildren(bounds.X, bounds.
Y
, bounds.Width, bounds.Height);
227
region = new Rect(parent.Width - region.Right, region.
Y
, region.Width, region.Height);
467
CompressedLayout.SetHeadlessOffset((VisualElement)LogicalChildrenInternal[i], isHeadless ? new Point(headlessOffset.X + Bounds.X, headlessOffset.Y + Bounds.
Y
) : new Point());
493
region = new Rect(parent.Width - region.Right, region.
Y
, region.Width, region.Height);
Shapes\Matrix.cs (1)
748
rect.Height = Math.Max(Math.Max(point0.Y, point1.Y), Math.Max(point2.Y, point3.Y)) - rect.
Y
;
Shapes\RectangleGeometry.cs (1)
36
float y = (float)Rect.
Y
;
Shapes\RoundRectangleGeometry.cs (1)
119
float y = (float)Rect.
Y
;
ViewExtensions.cs (3)
98
double y = start.
Y
+ (bounds.
Y
- start.
Y
) * progress;
VisualElement\VisualElement.cs (1)
1760
Y = bounds.
Y
;
Window\Window.cs (1)
224
SetValue(YProperty, frame.
Y
, SetterSpecificity.FromHandler);
Microsoft.Maui.Controls.Compatibility (2)
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 (27)
TwoPaneView.cs (6)
564
_content1.Padding = new Thickness(0, pane1.
Y
, 0, 0);
583
_content2.Padding = new Thickness(0, pane1.
Y
, 0, 0);
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 (21)
227
var pane2Y = Hinge.
Y
+ Hinge.Height;
228
var containerBottomY = locationOnScreen.
Y
+ locationOnScreen.Height;
231
_newPane1 = new Rect(0, 0, locationOnScreen.Width, Hinge.
Y
- locationOnScreen.
Y
);
263
var containerBottomY = locationOnScreen.
Y
+ locationOnScreen.Height;
264
var hingeBottomY = Hinge.
Y
+ Hinge.Height;
267
if (containerBottomY > Hinge.
Y
&& containerBottomY < hingeBottomY)
269
_newPane1 = new Rect(0, 0, locationOnScreen.Width, Hinge.
Y
- locationOnScreen.
Y
);
272
else if (Hinge.
Y
< locationOnScreen.
Y
&& hingeBottomY > locationOnScreen.
Y
)
274
var amountObscured = hingeBottomY - locationOnScreen.
Y
;
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))
Microsoft.Maui.Graphics (30)
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 (16)
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);
62
hashCode = (hashCode * 397) ^
Y
.GetHashCode();
82
return X <= rect.X && Right >= rect.Right &&
Y
<= rect.
Y
&& Bottom >= rect.Bottom;
118
double y = Math.Max(r1.
Y
, r2.
Y
);
132
get =>
Y
;
138
get =>
Y
+ Height;
139
set => Height = value -
Y
;
168
get => new Point(X,
Y
);
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));
215
y =
Y
;
220
public static implicit operator RectF(Rect rect) => new RectF((float)rect.X, (float)rect.
Y
, (float)rect.Width, (float)rect.Height);