/// <summary> /// Calls the OnTap delegate as provided by the client. Runs when an object has a finger added when last frame it had none. /// </summary> public void DoTap() { if (!Supports(TouchAction.Tap)) { return; } GeneralTransform gt = TopContainer.TransformToVisual(this.WorkingObject); System.Windows.Point curPoint = gt.Transform(new System.Windows.Point(ObjectTouches.MoveCenter.X, ObjectTouches.MoveCenter.Y)); PointF tapPoint = new PointF((float)curPoint.X, (float)curPoint.Y); handler.Tap(tapPoint); }