public override PathPointLayout GetLayout(Windows.Devices.Input.PointerDeviceType deviceType)
        {
            switch (deviceType)
            {
            case Windows.Devices.Input.PointerDeviceType.Mouse:
            case Windows.Devices.Input.PointerDeviceType.Touch:
            case Windows.Devices.Input.PointerDeviceType.Pen:
                return(new PathPointLayout(PathPoint.Property.X,
                                           PathPoint.Property.Y,
                                           PathPoint.Property.Size));

            default:
                throw new Exception("Unknown input device type");
            }
        }
        private PointerType ConvertPointerDeviceType(WinRTPointerDeviceType deviceType)
        {
            switch (deviceType)
            {
            case WinRTPointerDeviceType.Mouse:
                return(PointerType.Mouse);

            case WinRTPointerDeviceType.Pen:
                throw new NotSupportedException("Pen device input is not supported.");

            case WinRTPointerDeviceType.Touch:
                return(PointerType.Touch);
            }
            return(PointerType.Unknown);
        }
 private PointerType ConvertPointerDeviceType(WinRTPointerDeviceType deviceType)
 {
     switch (deviceType)
     {
         case WinRTPointerDeviceType.Mouse:
             return PointerType.Mouse;
         case WinRTPointerDeviceType.Pen:
             throw new NotSupportedException("Pen device input is not supported.");
         case WinRTPointerDeviceType.Touch:
             return PointerType.Touch;
     }
     return PointerType.Unknown;
 }