Last active
August 29, 2015 14:10
-
-
Save tombowers/74db83dd284d0d7fda37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
}, | |
}; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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