SurfaceTouchDevice and Drag & Drop

Editor
Aug 30, 2010 at 4:21 PM

It seems that the SurfaceTouchDevice is incompatible with the SurfaceSDK's version (i.e. v1.0 of the assemblies) of SurfaceDragDrop. It all compiles fine, but when SurfaceDragDrop is called, it complains that the devices in the deviceList parameter isn't a valid type. Apparently, it requires the devices to be of type MouseDevice or Contact.

What I did to solve it temporarily was to put compilation conditionals (#if) around the code:

List<InputDevice> devices = new List<InputDevice>();
#if SURFACE
    devices.Add(((SurfaceTouchDevice)e.Device).Contact);
#else
    devices.Add(e.Device);
#endif
But this doesn't seem like a good long term solution. Any suggestions on this?

 

 

Coordinator
Aug 30, 2010 at 5:15 PM

Thanks for letting me know about this. I'll investigate a better solution.

Coordinator
Aug 30, 2010 at 5:16 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.