Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Thumb control, DragDelta and Jitter (dragging goes crazy!)

$
0
0

Hello everybody, I'm using Thumbs to resize a Control. 

To get this I have an Adorner that consists of some Thumbs at the corners of the AdornedElement (the Control).

Each thumb handles the DragDelta event and I resize the AdornedElement accordingly.

As the size is changed (a little mouse drag delta, in fact), the Thumbs at each corner should be redrawn at their new positions. I force this "redraw" by calling AdornedElement.InvalidateArrange().

Then, the Thumbs are redrawn OK.

The problem is that while dragging I can observe a VERY ANNOYING jitter, making the whole Control vibrate like crazy while the drag operation is made.

The deltas vary abruptly like if they are getting a wrong delta. 

Please, help me, I don't know how to make the dragging smooth!!


Desde España / From Spain



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>