Пример #1
0
        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;
            }
        }
Пример #2
0
 public void OnTouchAction(Element element, TouchActionEventArgs args)
 {
     TouchAction?.Invoke(element, args);
 }