I have a WPF 4 application in which I implemented Drag and Drop using the standard DragDrop.DoDragDrop approach, but I do this using touch instead of Mouse events.
My XAML for my grid (this is Im drag and drop) looks like this:
<Grid x:Name="LayoutRoot" ManipulationStarting="ManipulationStarting" ManipulationDelta="ManipulationDelta" ManipulationCompleted="ManipulationCompleted" IsManipulationEnabled="True"> </Grid>
Now the code looks like this:
private void ManipulationStarting(object sender, ManipulationStartingEventArgs e) { e.ManipulationContainer = this; e.Handled = true; } private void ManipulationDelta(object sender, ManipulationDeltaEventArgs e) { e.Handled = true; DragDrop.DoDragDrop(this, new DataObject(GetType(), this), DragDropEffects.Move); } private void ManipulationCompleted(object sender, ManipulationCompletedEventArgs e) {
BUT , when I try to drag with one finger while dragging with the other finger (for example, for hands, for example, to simulate two people), the second touch does not seem to register properly, it seems like windows think my two fingers are trying to scale ( e.g. pinch gesture) ...
Does anyone know a way around this?
Thanks a lot Mark
source share