public void Item_TouchDown(PointF p, ContactsObject obj) { //절대 좌표로 변경 PointF globalPt = new PointF(thisCont.ObjectTouches.MoveCenter.X, thisCont.ObjectTouches.MoveCenter.Y); IsSelecting = true; contactsObj = new ContactsObject(window, main, obj.contacts); Canvas.SetZIndex(contactsObj, 100000); main.Children.Add(contactsObj); contactsObj.setPosition(globalPt, thisAngle + thisCont.RotateFilter.Target); }
public void Item_TouchMove(PointF p, int state) { //절대 좌표로 변경 PointF globalPt = new PointF(thisCont.ObjectTouches.MoveCenter.X, thisCont.ObjectTouches.MoveCenter.Y); itemState = state; if (IsSelecting == true) { if (itemState == 1) { contactsObj.img_send.Visibility = Visibility.Visible; } else { contactsObj.img_send.Visibility = Visibility.Hidden; } contactsObj.setPosition(globalPt, thisAngle + thisCont.RotateFilter.Target); } }