-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
QuadraticBezierSegment.cs
44 lines (37 loc) · 1.74 KB
/
QuadraticBezierSegment.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#nullable disable
using Microsoft.Maui.Graphics;
namespace Microsoft.Maui.Controls.Shapes
{
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/QuadraticBezierSegment.xml" path="Type[@FullName='Microsoft.Maui.Controls.Shapes.QuadraticBezierSegment']/Docs/*" />
public class QuadraticBezierSegment : PathSegment
{
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/QuadraticBezierSegment.xml" path="//Member[@MemberName='.ctor'][1]/Docs/*" />
public QuadraticBezierSegment()
{
}
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/QuadraticBezierSegment.xml" path="//Member[@MemberName='.ctor'][2]/Docs/*" />
public QuadraticBezierSegment(Point point1, Point point2)
{
Point1 = point1;
Point2 = point2;
}
/// <summary>Bindable property for <see cref="Point1"/>.</summary>
public static readonly BindableProperty Point1Property =
BindableProperty.Create(nameof(Point1), typeof(Point), typeof(QuadraticBezierSegment), new Point(0, 0));
/// <summary>Bindable property for <see cref="Point2"/>.</summary>
public static readonly BindableProperty Point2Property =
BindableProperty.Create(nameof(Point2), typeof(Point), typeof(QuadraticBezierSegment), new Point(0, 0));
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/QuadraticBezierSegment.xml" path="//Member[@MemberName='Point1']/Docs/*" />
public Point Point1
{
set { SetValue(Point1Property, value); }
get { return (Point)GetValue(Point1Property); }
}
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/QuadraticBezierSegment.xml" path="//Member[@MemberName='Point2']/Docs/*" />
public Point Point2
{
set { SetValue(Point2Property, value); }
get { return (Point)GetValue(Point2Property); }
}
}
}