Beispiel #1
0
 public void Hide()
 {
     if (FadeDuration > 0)
     {
         //AddCaptureListener(_ignoreTouchDown);
         PreviewTouchDown += CancelTouchDownHandler;
         AddAction(ActionRepo.Sequence(
                       ActionRepo.FadeOut(FadeDuration, Interpolation.Fade),
                       ActionRepo.Immediate(() => { PreviewTouchDown -= CancelTouchDownHandler; }),
                       //ActionRepo.RemoveListener(_ignoreTouchDown, true),
                       ActionRepo.RemoveActor()
                       ));
     }
     else
     {
         Remove();
     }
 }
Beispiel #2
0
        public void HideList()
        {
            if (_list == null || _list.Parent == null)
            {
                return;
            }

            _list.AddAction(ActionRepo.Sequence(ActionRepo.FadeOut(.15f, Interpolation.Fade), ActionRepo.RemoveActor()));
        }