Change XML Properties myImage.SetValue(Canvas.LeftProperty, "10"); myImage.SetValue(Canvas.TopProperty, "10");