Example #1
0
        /// <summary>
        ///     Provides the current position.
        /// </summary>
        /// <param name="relativeTo">Defines the coordinate space.</param>
        /// <returns>The current position in the coordinate space of relativeTo.</returns>
        public override TouchPoint GetTouchPoint(IInputElement relativeTo)
        {
            Point position = StylusDevice.GetPosition(relativeTo);

            Rect rectBounds = GetBounds(StylusDevice.RawStylusPoint, position, relativeTo);

            return(new TouchPoint(this, position, rectBounds, _lastAction));
        }
Example #2
0
 public Point GetPosition(IInputElement relativeTo)
 {
     return(StylusDevice.GetPosition(relativeTo));
 }