emineshn / breezemultitouch

Automatically exported from code.google.com/p/breezemultitouch
0 stars 0 forks source link

Updating Canvas #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Do Canvas.SetLeft()... 
2. Drag Photo's manually

What is the expected output? What do you see instead?
Canvas'es LeftProperty and TopProperty must be updated.
Instead of that they are not.

What version of the product are you using? On what operating system?
1.0.5 Win Vista

Please provide any additional information below.
VS 2010

Original issue reported on code.google.com by alexpoly...@gmail.com on 24 Oct 2011 at 12:50

GoogleCodeExporter commented 9 years ago
After moving an object on the Canvas in code you must update the container.  
Otherwise the framework has no way of knowing you have moved the object 
directly.

See the PosAll function within TouchExample.  Snippet below:

Canvas.SetTop(cont.WorkingObject, y);
Canvas.SetLeft(cont.WorkingObject, x);

// Resets all internal stuff
cont.Reset();

// Sets the correct starting positions for calculations based on their moved 
positions
cont.StartX = x;
cont.StartY = y;

Original comment by badbod99 on 4 Nov 2011 at 5:22