I cannot set where do you update the properties related to the position of
Ellipse
.
I would agree that you do if I saw something like
myCanvas.SetLeft(MyEllipse, displacementX);
myCanvas.SetTop(MyEllipse, displacementY);
Please see:
http://msdn.microsoft.com/en-us/library/system.windows.controls.canvas.settop.aspx[
^],
http://msdn.microsoft.com/en-us/library/system.windows.controls.canvas.setleft.aspx[
^].
Now about the animation. I cannot see where you animate the position of a
UIElement
of
Canvas
. You do it to the
TranslateTransform
, which is a right approach, but you should not expect that any dependency property of you
UIElement
are updated. These are just different things.
—SA