24 writes to X
Microsoft.Maui (3)
Layouts\AbsoluteLayoutManager.cs (2)
88 destination.X = (availableWidth - destination.Width) * destination.X; 96 destination.X += left;
VisualDiagnostics\RectangleAdorner.cs (1)
84 box.X = box.X + Offset.X;
Microsoft.Maui.Controls (16)
LegacyLayouts\AbsoluteLayout.cs (3)
75 rect.X += x; 285 result.X = Math.Round((region.Width - result.Width) * bounds.X); 289 result.X = bounds.X;
LegacyLayouts\Layout.cs (4)
256 region.X += (int)(diff * horizontalAlign); 272 region.X += margin.Left; 520 region.X += (int)(diff * horizontalAlign); 537 region.X += margin.Left;
LegacyLayouts\StackLayout.cs (2)
252 layout.Plots[i].X -= xOffset; 458 plot.X += xOffset;
Page\Page.cs (1)
422 area.X += Padding.Left;
Shapes\Matrix.cs (5)
709 rect.X *= matrix._m11; 716 rect.X += rect.Width; 731 rect.X += matrix._offsetX; 734 rect.X += matrix._offsetY; 744 rect.X = Math.Min(Math.Min(point0.X, point1.X), Math.Min(point2.X, point3.X));
Shapes\Shape.cs (1)
283 viewBounds.X += StrokeThickness / 2;
Microsoft.Maui.Graphics (5)
Rect.cs (5)
30 X = x; 151 set => X = value; 171 X = value.X; 187 r.X -= width; 197 r.X += dx;
82 references to X
Microsoft.Maui (7)
Layouts\AbsoluteLayoutManager.cs (1)
88 destination.X = (availableWidth - destination.Width) * destination.X;
Layouts\FlexLayoutManager.cs (1)
30 if (double.IsNaN(frame.X)
Layouts\LayoutExtensions.cs (1)
87 return AlignHorizontal(bounds.X, margin.Left, margin.Right, bounds.Width, desiredWidth, alignment);
Layouts\VerticalStackLayoutManager.cs (1)
51 double left = padding.Left + bounds.X;
VisualDiagnostics\RectangleAdorner.cs (1)
84 box.X = box.X + Offset.X;
VisualDiagnostics\RectangleGridAdorner.cs (1)
30 var x = (float)DrawnRectangle.X;
VisualDiagnostics\VisualDiagnosticsOverlay.cs (1)
155 parentScrollView.RequestScrollTo(platformView.X, platformView.Y, true);
Microsoft.Maui.Controls (16)
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)
178 width += bounds.X; 285 result.X = Math.Round((region.Width - result.Width) * bounds.X); 289 result.X = bounds.X;
LegacyLayouts\FlexLayout.cs (1)
424 if (double.IsNaN(frame.X)
LegacyLayouts\Layout.cs (3)
84 LayoutChildren(bounds.X, bounds.Y, bounds.Width, bounds.Height); 225 (parent.Width - region.Right) != region.X) 467 CompressedLayout.SetHeadlessOffset((VisualElement)LogicalChildrenInternal[i], isHeadless ? new Point(headlessOffset.X + Bounds.X, headlessOffset.Y + Bounds.Y) : new Point());
Shapes\Matrix.cs (1)
747 rect.Width = Math.Max(Math.Max(point0.X, point1.X), Math.Max(point2.X, point3.X)) - rect.X;
Shapes\RectangleGeometry.cs (1)
35 float x = (float)Rect.X;
Shapes\RoundRectangleGeometry.cs (1)
118 float x = (float)Rect.X;
ViewExtensions.cs (3)
97 double x = start.X + (bounds.X - start.X) * progress;
VisualElement\VisualElement.cs (1)
1759 X = bounds.X;
Window\Window.cs (1)
223 SetValue(XProperty, frame.X, 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)
528 _content1.Padding = new Thickness(pane1.X, 0, 0, 0); 546 _content2.Padding = new Thickness(pane1.X, 0, 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)
218 var pane2X = Hinge.X + Hinge.Width; 219 var containerRightX = locationOnScreen.X + locationOnScreen.Width; 222 _newPane1 = new Rect(0, 0, Hinge.X - locationOnScreen.X, locationOnScreen.Height); 241 var containerRightX = locationOnScreen.X + locationOnScreen.Width; 242 var hingeRightX = Hinge.X + Hinge.Width; 245 if (containerRightX > Hinge.X && containerRightX < hingeRightX) 247 _newPane1 = new Rect(0, 0, Hinge.X - locationOnScreen.X, locationOnScreen.Height); 250 else if (Hinge.X < locationOnScreen.X && hingeRightX > locationOnScreen.X) 252 var amountObscured = hingeRightX - locationOnScreen.X; 326 if (layoutBounds.X < hinge.X && layoutBounds.X + layoutBounds.Width > (hinge.X + hinge.Width)) 340 if (layoutBounds.X < hinge.X && layoutBounds.X + layoutBounds.Width > (hinge.X + hinge.Width))
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); 61 int hashCode = X.GetHashCode(); 82 return X <= rect.X && Right >= rect.Right && Y <= rect.Y && Bottom >= rect.Bottom; 117 double x = Math.Max(r1.X, r2.X); 144 get => X + Width; 145 set => Width = value - X; 150 get => X; 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)); 214 x = X; 220 public static implicit operator RectF(Rect rect) => new RectF((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.Height);