Skip to content

Instantly share code, notes, and snippets.

@tombowers
Last active August 29, 2015 14:10
Show Gist options
  • Save tombowers/74db83dd284d0d7fda37 to your computer and use it in GitHub Desktop.
Save tombowers/74db83dd284d0d7fda37 to your computer and use it in GitHub Desktop.
using Xamarin.Forms;
namespace DraggableView
{
public class App
{
public static Page GetMainPage()
{
return new ContentPage
{
Content = new Label
{
Text = "Hello, Forms !",
VerticalOptions = LayoutOptions.CenterAndExpand,
HorizontalOptions = LayoutOptions.CenterAndExpand,
},
};
}
}
}
var tapGestureRecognizer = new TapGestureRecognizer();
tapGestureRecognizer.Tapped += (s, e) => {
// handle the tap here
};
control.GestureRecognizers.Add(tapGestureRecognizer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment