示例#1
0
文件: Key.cs 项目: 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;
            }
        }
示例#2
0
 public void OnTouchAction(Element element, TouchActionEventArgs args)
 {
     TouchAction?.Invoke(element, args);
 }