I want Drag and Drop BoxView.
so i maked pangesture and write the code
private void BoxViewPanUpdated(object sender, PanUpdatedEventArgs e) { if(e.StatusType == GestureStatus.Running) { boxview.TranslateX = e.TotalX; boxview.TranslateY = e.TotalY; } else if(e.StatusType == GestureStatus.Completed) { System.Diagnostics.Debug.WriteLine("Pan Ended"); } .... }
upper source code is example source.
Play that program, i expected to see the string "Pan Ended" when i up my finger from phone's screen,
but PanGesture's Completed or Canceld Status are not Constant.
I want move boxview to appointed position when my finger up from screen.
For example when the boxview's position is over (100,100) and my finger is not touch screen any more, the boxview's position translate to (200,200).
How can i detect screen's touch event exately?