diff options
author | Jason Smith <jason.smith@xamarin.com> | 2016-04-24 12:25:26 -0400 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-04-24 12:25:26 -0400 |
commit | 5907152c50ee2c658b266f2804e6b383bb15a6f1 (patch) | |
tree | 9beb907623359723456c5c03b08922bebc4f41f3 /Xamarin.Forms.Pages/PersonDetailPage.cs | |
parent | feac1ba3ed6df5e27b3fa2076bd15c190cbacd1c (diff) | |
download | xamarin-forms-5907152c50ee2c658b266f2804e6b383bb15a6f1.tar.gz xamarin-forms-5907152c50ee2c658b266f2804e6b383bb15a6f1.tar.bz2 xamarin-forms-5907152c50ee2c658b266f2804e6b383bb15a6f1.zip |
Evolve feature branch (#117)
* Initial import of evolve features
* [Android] Add Xamarin.Forms.Platform.Android.AppLinks project
* [iOS] Fix issues with c# 6 features on iOS AppLinks
* Added naive stanza to update-docs-windows.bat to produce Pages docs. Not tested. (#69)
* Update packages
* Add AppLinks android nuspec and fix linker issues
* Fix build
* Fix nusepc
* Fix nuspec
* Update android support nugets to 23.2.1
* Update Xamarin.UITest
* Add CardView
* [iOS] Fix app link for CoreSpotlight
* [Android] Update AppLinks android support libs
* Add Newtonsoft.Json dependency to nuspec
* Fix NRE when setting ControlTemplate to null
* Move to ModernHttpClient for download
* Try fix build
* Preserve android app links
* Fix margin issue
* General coding and simple fixes
Diffstat (limited to 'Xamarin.Forms.Pages/PersonDetailPage.cs')
-rw-r--r-- | Xamarin.Forms.Pages/PersonDetailPage.cs | 90 |
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 |