I'm trying to drag an adapter item to another in a WPF app using the Mouse.MoveTo, ButtonDown and ButtonUp methods but I'm experiencing some odd behaviour. In the code below the initial MoveTo operates correctly and I can see from breakpoints being hit that the following ButtonDown is being called, but the following MoveTo isn't being called.
Code: Select all
Mouse.MoveTo(source);
Mouse.ButtonDown(MouseButtons.Left);
Mouse.MoveTo(destination, location);
Mouse.ButtonUp(MouseButtons.Left);
Any suggestions as to why it's not working? I've had a look at some similar posts but with no luck. The element repository contains the parent to the source and destination controls and I've tried setting the "Use Ensure Visible" to false.
Thanks,
Rob