Esempio n. 1
0
 protected override void Dispose(bool disposing)
 {
     if (tapToken != null)
     {
         tapGesture.RemoveTarget(tapToken);
     }
     Clear();
     base.Dispose(disposing);
 }
 public void Null()
 {
     using (var gr = new UIGestureRecognizer(Null)) {
         // ensure documented null-friendly methods actually are before releasing them in the wild
         gr.LocationInView(null);
         // can't call LocationOfTouch, 0 is not valid if there's no touch event
         // gr.LocationOfTouch (0, null);
         gr.RemoveTarget(null, null);
     }
 }