Example #1
0
File: Key.cs Project: ajay53/Forms
        void OnTouchEffectAction(object sender, TouchActionEventArgs args)
        {
            switch (args.Type)
            {
            case TouchActionType.Pressed:
                Console.WriteLine("Key");
                //AddToList(args.Id);
                AddButtonToList(sender);
                break;

            case TouchActionType.Entered:
                //if (args.IsInContact)
                //{
                //    AddToList(args.Id);
                //}
                AddButtonToList(sender);
                break;

            case TouchActionType.Moved:
                break;

            case TouchActionType.Released:
                validateWord();
                //SetUpColor();
                break;

            case TouchActionType.Exited:
                //RemoveFromList(args.Id);
                break;
            }
        }
Example #2
0
 public void OnTouchAction(Element element, TouchActionEventArgs args)
 {
     TouchAction?.Invoke(element, args);
 }