コード例 #1
0
ファイル: TouchPointHelper.cs プロジェクト: tuliosouza/ASG
        public static TouchPoint ToTouchPoint(this TouchInfo self)
        {
            #if SILVERLIGHT
            TouchPoint point = new TouchPoint();
            point.SetValue("Position", self.Position);
            #else
            TouchAction action = self.ActionType.ToTouchAction();
            Rect rect = new Rect(self.Position, self.Position);

            TouchPoint point = new TouchPoint(null, self.Position, rect, action);
            #endif
            return point;
        }