summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Pages/PersonDetailPage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Pages/PersonDetailPage.cs')
-rw-r--r--Xamarin.Forms.Pages/PersonDetailPage.cs90
1 files changed, 90 insertions, 0 deletions
diff --git a/Xamarin.Forms.Pages/PersonDetailPage.cs b/Xamarin.Forms.Pages/PersonDetailPage.cs
new file mode 100644
index 00000000..9a58e106
--- /dev/null
+++ b/Xamarin.Forms.Pages/PersonDetailPage.cs
@@ -0,0 +1,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); }
+ }
+ }
+} \ No newline at end of file