Beispiel #1
0
 public override void TouchesEnded(NSSet touches, UIEvent evt)
 {
     if (string.IsNullOrEmpty(_disabled) && !_confirmed)
     {
         var point = (touches.AnyObject as UITouch).LocationInView(this.Superview);
         if (!Frame.Contains(point))
         {
             Lighten();
             base.TouchesCancelled(touches, evt);
         }
         else if (Selected)
         {
             Lighten();
             _confirmed = true;
             _cancelOverlay.RemoveFromSuperview();
             _cancelOverlay = null;
             base.TouchesEnded(touches, evt);
         }
         else
         {
             Lighten();
             Selected             = true;
             _cancelOverlay       = UIButton.FromType(UIButtonType.Custom);
             _cancelOverlay.Frame = new RectangleF(0, 0, 1024, 1024);
             _cancelOverlay.AddTarget(delegate { Cancel(); }, UIControlEvent.TouchDown);
             Superview.AddSubview(_cancelOverlay);
             Superview.BringSubviewToFront(this);
         }
     }
 }
 public override void TouchesBegan(NSSet touches, UIEvent evt)
 {
     base.TouchesBegan(touches, evt);
     lastTimeStamp = evt.Timestamp;
     Superview.BringSubviewToFront(this);
     lastLocation = Center;
 }
        void Show()
        {
            Superview.BringSubviewToFront(this);

            Animate(0.3, delegate {
                Alpha = 1.0f;
            });
        }
 public override void TouchesBegan(NSSet touches, UIEvent evt)
 {
     base.TouchesBegan(touches, evt);
     lastTimeStamp = evt.Timestamp;
     Superview.BringSubviewToFront(this);
     lastLocation     = Center;
     lastMoveLocation = (touches.AnyObject as UITouch).LocationInView(this);
 }
Beispiel #5
0
        internal void StartAnimating()
        {
            _activitySpinner.StartAnimating();

            Hidden = false;

            Superview.BringSubviewToFront(this);
        }
Beispiel #6
0
        public override void TouchesBegan(NSSet touches, UIEvent evt)
        {
            base.TouchesBegan(touches, evt);
            lastTimeStamp = evt.Timestamp;
            Superview.BringSubviewToFront(this);

            lastLocation = Center;
            (Element as eliteElements.eliteVideo).controlsShow();
        }
Beispiel #7
0
        public override UIView HitTest(CGPoint point, UIEvent uievent)
        {
            var view = base.HitTest(point, uievent);

            if (view != null)
            {
                Superview.BringSubviewToFront(this);
            }
            return(view);
        }
Beispiel #8
0
 public void Show()
 {
     Superview.BringSubviewToFront(this);
     SlidePopupTo(VisibleY);
 }
 public void Show()
 {
     Superview.BringSubviewToFront(this);
     AnimateAlpha(1.0f);
 }