diff options
Diffstat (limited to 'Xamarin.Forms.Controls/HanselForms/MyAbout.xaml.cs')
-rw-r--r-- | Xamarin.Forms.Controls/HanselForms/MyAbout.xaml.cs | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/HanselForms/MyAbout.xaml.cs b/Xamarin.Forms.Controls/HanselForms/MyAbout.xaml.cs new file mode 100644 index 00000000..c3324538 --- /dev/null +++ b/Xamarin.Forms.Controls/HanselForms/MyAbout.xaml.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; + +using Xamarin.Forms; + +namespace Xamarin.Forms.Controls +{ + public partial class MyAbout : ContentPage + { + public MyAbout() + { + InitializeComponent(); + + twitter.GestureRecognizers.Add(new TapGestureRecognizer() + { + Command = new Command(async () => + { + + await this.Navigation.PushAsync(new WebsiteView("https://m.twitter.com/shanselman", "@shanselman")); + }) + }); + + facebook.GestureRecognizers.Add(new TapGestureRecognizer() + { + Command = new Command(async () => + { + + await this.Navigation.PushAsync(new WebsiteView("https://facebook.com/scott.hanselman", "Scott @Facebook")); + }) + }); + + instagram.GestureRecognizers.Add(new TapGestureRecognizer() + { + Command = new Command(async () => + { + + await this.Navigation.PushAsync(new WebsiteView("https://instagram.com/shanselman", "Scott @Instagram")); + }) + }); + } + } +} |