summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Pages/PersonDetailPage.cs
blob: 9a58e106b808bb6845ba0a58a0afc958b3d314df (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
namespace Xamarin.Forms.Pages
{
	public class PersonDetailPage : DataPage
	{
		public static readonly BindableProperty DisplayNameProperty = BindableProperty.Create(nameof(DisplayName), typeof(string), typeof(PersonDetailPage), default(string));

		public static readonly BindableProperty PhoneNumberProperty = BindableProperty.Create(nameof(PhoneNumber), typeof(string), typeof(PersonDetailPage), default(string));

		public static readonly BindableProperty ImageProperty = BindableProperty.Create(nameof(Image), typeof(ImageSource), typeof(PersonDetailPage), default(ImageSource));

		public static readonly BindableProperty EmailProperty = BindableProperty.Create(nameof(Email), typeof(string), typeof(PersonDetailPage), default(string));

		public static readonly BindableProperty AddressProperty = BindableProperty.Create(nameof(Address), typeof(string), typeof(PersonDetailPage), default(string));

		public static readonly BindableProperty EmployerProperty = BindableProperty.Create(nameof(Employer), typeof(string), typeof(PersonDetailPage), default(string));

		public static readonly BindableProperty TwitterProperty = BindableProperty.Create(nameof(Twitter), typeof(string), typeof(PersonDetailPage), default(string));

		public static readonly BindableProperty FacebookProperty = BindableProperty.Create(nameof(Facebook), typeof(string), typeof(PersonDetailPage), default(string));

		public static readonly BindableProperty WebsiteProperty = BindableProperty.Create(nameof(Website), typeof(string), typeof(PersonDetailPage), default(string));

		public PersonDetailPage()
		{
			SetBinding(DisplayNameProperty, new DataSourceBinding(nameof(DisplayName)));
			SetBinding(PhoneNumberProperty, new DataSourceBinding(nameof(PhoneNumber)));
			SetBinding(ImageProperty, new DataSourceBinding(nameof(Image)));
			SetBinding(EmailProperty, new DataSourceBinding(nameof(Email)));
			SetBinding(AddressProperty, new DataSourceBinding(nameof(Address)));
			SetBinding(EmployerProperty, new DataSourceBinding(nameof(Employer)));
			SetBinding(TwitterProperty, new DataSourceBinding(nameof(Twitter)));
			SetBinding(FacebookProperty, new DataSourceBinding(nameof(Facebook)));
			SetBinding(WebsiteProperty, new DataSourceBinding(nameof(Website)));
		}

		public string Address
		{
			get { return (string)GetValue(AddressProperty); }
			set { SetValue(AddressProperty, value); }
		}

		public string DisplayName
		{
			get { return (string)GetValue(DisplayNameProperty); }
			set { SetValue(DisplayNameProperty, value); }
		}

		public string Email
		{
			get { return (string)GetValue(EmailProperty); }
			set { SetValue(EmailProperty, value); }
		}

		public string Employer
		{
			get { return (string)GetValue(EmployerProperty); }
			set { SetValue(EmployerProperty, value); }
		}

		public string Facebook
		{
			get { return (string)GetValue(FacebookProperty); }
			set { SetValue(FacebookProperty, value); }
		}

		public ImageSource Image
		{
			get { return (ImageSource)GetValue(ImageProperty); }
			set { SetValue(ImageProperty, value); }
		}

		public string PhoneNumber
		{
			get { return (string)GetValue(PhoneNumberProperty); }
			set { SetValue(PhoneNumberProperty, value); }
		}

		public string Twitter
		{
			get { return (string)GetValue(TwitterProperty); }
			set { SetValue(TwitterProperty, value); }
		}

		public string Website
		{
			get { return (string)GetValue(WebsiteProperty); }
			set { SetValue(WebsiteProperty, value); }
		}
	}
}