Well i discover that my proble was taht the point is relative to the object and not from the canvas..
in my case, i had the cube in the left botomm of the screen, so if i move to Y it went of the screen, i had to put the -Y so it go up :) but it works now...
another thing that i notice, if u animate a object to some place, it dosen't change for real is positon on the layout right?
because if i try to do a animation after de first one, it goes from the 1 position, and not the position after the 1st animation.. is it possible to set the object postion after the animation? because in radcube case, i can't access to is postion on the screen, i don't now the proprety.
In my example i tryed to do this.. move radcube from center to the bottom of the secreen, but when i resize the window, the cube should adjust with window because is children of a grid, but this dosen't work well after the animation, i think its because postion of the cube is steal the 1st one.. so what i do was to save postions from each animation to another like this.. radcube is the login control.
//goes to the botom of the screen
this.loginanimation = new MoveAnimation(RadCube1, new Point(-(content.ActualWidth / 2) + 100, content.ActualHeight /2), 100);
this.loginanimation.EasingType = RadEasingType.OutExponential;
this.loginanimation.AnimationCompleted += new EventHandler(loginanimation_AnimationCompleted);
App.Current.Host.Content.Resized += new EventHandler(Content_Resized);
void Content_Resized(object sender, EventArgs e)
if (first >= 2)
double height = App.Current.Host.Content.ActualHeight;
double width = App.Current.Host.Content.ActualWidth;
//adjust the login to the botom of the screent when its resized
MoveAnimation ajustarlogin = new MoveAnimation(RadCube1, new Point(-(content.ActualWidth / 2) + 100, content.ActualHeight / 2), 100);
ajustarlogin.From = loginanimation.To;
loginanimation.To = ajustarlogin.To;
// GridScale.ScaleX = width / _originalWidth;
//GridScale.ScaleY = height / _originalHeight;
Can u please give me your advice on this, is this right? is there another way? easyer one?
thanks in advance.