-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Circle.cs
45 lines (39 loc) · 1018 Bytes
/
Circle.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
45
using System;
using System.Collections.Generic;
using System.Text;
namespace Xamarin.Forms.Maps
{
public class Circle : MapElement
{
public static readonly BindableProperty CenterProperty = BindableProperty.Create(
nameof(Center),
typeof(Position),
typeof(Circle),
default(Position));
public static readonly BindableProperty RadiusProperty = BindableProperty.Create(
nameof(Radius),
typeof(Distance),
typeof(Circle),
default(Distance));
public static readonly BindableProperty FillColorProperty = BindableProperty.Create(
nameof(FillColor),
typeof(Color),
typeof(Circle),
Color.Default);
public Position Center
{
get => (Position)GetValue(CenterProperty);
set => SetValue(CenterProperty, value);
}
public Distance Radius
{
get => (Distance)GetValue(RadiusProperty);
set => SetValue(RadiusProperty, value);
}
public Color FillColor
{
get => (Color)GetValue(FillColorProperty);
set => SetValue(FillColorProperty, value);
}
}
}