I assume you are using the Surface SDK. (If not, why not?) Then this is a great resource: http://msdn.microsoft.com/en-us/library/ff727837.aspx
edit: While re-reading my question, I saw that you used Touch-overlay. Is it right that they do not trigger touch events on Windows 7, but simply simulate a mouse? If so, then I'm a little curious why drag-and-drop does not work with this, as with a normal mouse.
edit2:
So, you need to add two listeners in the datatemplate; PreviewTouchDown and PreviewTouchMove.
This is what I use to start the drag and drop operation with the mouse, but it should also work with touch, with some changes.
private void TreePreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { _startPoint = e.GetPosition(null); _checkDragDrop = true; } private void TempTreeMouseMove(object sender, MouseEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed) { var mousePos = e.GetPosition(null); var diff = _startPoint - mousePos; if (_checkDragDrop) { if (Math.Abs(diff.X) > SystemParameters.MinimumHorizontalDragDistance || Math.Abs(diff.Y) > SystemParameters.MinimumVerticalDragDistance) { _checkDragDrop = false; . . . DragDropEffects val = DragDrop.DoDragDrop(DragSourceList, dragData, DragDropEffects.Move); } } } }
You probably can't use the Telerik class with this.
source share