1 write to CornerRadius
Microsoft.Maui.Controls (1)
Shapes\RoundRectangleGeometry.cs (1)
20
CornerRadius
= cornerRadius;
34 references to CornerRadius
Microsoft.Maui.Controls (34)
Shapes\RoundRectangleGeometry.cs (34)
41
/// <summary>Bindable property for <see cref="
CornerRadius
"/>.</summary>
43
BindableProperty.Create(nameof(
CornerRadius
), typeof(CornerRadius), typeof(RoundRectangleGeometry), new CornerRadius(),
74
if (
CornerRadius
.TopLeft > 0)
76
new EllipseGeometry(new Point(Rect.Location.X +
CornerRadius
.TopLeft, Rect.Location.Y +
CornerRadius
.TopLeft),
CornerRadius
.TopLeft,
CornerRadius
.TopLeft));
78
if (
CornerRadius
.TopRight > 0)
80
new EllipseGeometry(new Point(Rect.Location.X + Rect.Width -
CornerRadius
.TopRight, Rect.Location.Y +
CornerRadius
.TopRight),
CornerRadius
.TopRight,
CornerRadius
.TopRight));
82
if (
CornerRadius
.BottomRight > 0)
84
new EllipseGeometry(new Point(Rect.Location.X + Rect.Width -
CornerRadius
.BottomRight, Rect.Location.Y + Rect.Height -
CornerRadius
.BottomRight),
CornerRadius
.BottomRight,
CornerRadius
.BottomRight));
86
if (
CornerRadius
.BottomLeft > 0)
88
new EllipseGeometry(new Point(Rect.Location.X +
CornerRadius
.BottomLeft, Rect.Location.Y + Rect.Height -
CornerRadius
.BottomLeft),
CornerRadius
.BottomLeft,
CornerRadius
.BottomLeft));
93
StartPoint = new Point(Rect.Location.X +
CornerRadius
.TopLeft, Rect.Location.Y),
96
new LineSegment { Point = new Point(Rect.Location.X + Rect.Width -
CornerRadius
.TopRight, Rect.Location.Y) },
97
new LineSegment { Point = new Point(Rect.Location.X + Rect.Width, Rect.Location.Y +
CornerRadius
.TopRight) },
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) },
102
new LineSegment { Point = new Point(Rect.Location.X, Rect.Location.Y +
CornerRadius
.TopLeft) }
123
float tl = (float)
CornerRadius
.TopLeft;
124
float tr = (float)
CornerRadius
.TopRight;
125
float bl = (float)
CornerRadius
.BottomLeft;
126
float br = (float)
CornerRadius
.BottomRight;