Ejemplo n.º 1
0
        internal virtual bool ProcessTouchUp(TouchEventArgs e)
        {
            if (!canRaiseEvents || !IntersectTest(e.Location))
                return false;

            if (!IsClicked && isEnabled)
            {
                OnTouchUp(e);

                if (isFocusable && !IsFocused)
                    OnGotFocus(EventArgs.Empty);
            }

            return true;
        }
Ejemplo n.º 2
0
 protected virtual void OnTouchUp(TouchEventArgs e)
 {
     EventHandler<TouchEventArgs> handler = (EventHandler<TouchEventArgs>)Events[EventTouchUp];
     if (handler != null)
         handler(this, e);
 }
Ejemplo n.º 3
0
        internal virtual bool ProcessTouchMove(TouchEventArgs e)
        {
            if (!HasCaptured && !IntersectTest(e.Location))
                return false;

            if (canRaiseEvents)
            {
                //if (!isInside)
                    //OnMouseEnter(e);

                OnTouchMove(e);
                return true;
            }
            return false;
        }