public PanGestureExample() { InitializeComponent(); AddSomeGesturesUsingCode(); //the following is only necessary until Xamarin give us a hook into this I've filed a bugzilla about it //https://bugzilla.xamarin.com/show_bug.cgi?id=30467 //if you don't want to write the following lines of code, then MAKE YOUR VOICE HEARD ON THAT BUG PLEASE! :) FixGesturesUsingXaml(); Box2.Layout(new Rectangle(100, 100, 50, 50)); }
public PanGestureAlternateRoutingDelayAndDelegate() { InitializeComponent(); //the following is only necessary until Xamarin give us a hook into this I've filed a bugzilla about it //https://bugzilla.xamarin.com/show_bug.cgi?id=30467 //if you don't want to write the following lines of code, then MAKE YOUR VOICE HEARD ON THAT BUG PLEASE! :) FixGesturesUsingXaml(); Box2.Layout(new Rectangle(100, 100, 50, 50)); var items = new List <string> (); for (int i = 0; i < 200; i++) { items.Add("a test item " + i); } MockList.ItemsSource = items; }
void OnMoveClicked(object s, EventArgs e) { Box2.Layout(new Rectangle(Box2.X + 50, 100, 50, 50)); }