Esempio n. 1
0
 private void InitializeGestures()
 {
     if (_outsideTouchGesture == null)
     {
         _outsideTouchGesture = new ImmediateTouchRecognizer(CloseView);
         OutsideAreaView.AddGestureRecognizer(_outsideTouchGesture);
     }
 }
Esempio n. 2
0
 private void DisposeGestures()
 {
     if (_outsideTouchGesture != null)
     {
         OutsideAreaView.RemoveGestureRecognizer(_outsideTouchGesture);
         _outsideTouchGesture.Dispose();
         _outsideTouchGesture = null;
     }
 }