I
IKING251
Guest
hello everyone,
I have a textBox and I want to Make a check and error image for it when i check the textbox text.
so i add two image into my project and set their width and height to 1 and i want to use animation to scale them up and i use this code :
private void ScaleUpAnime(Image MyImg)
{
ScaleTransform ScaleUpTrans = new ScaleTransform(0, 0, 0, 0);
MyImg.RenderTransform = ScaleUpTrans;
DoubleAnimation ScaleUpAnime = new DoubleAnimation(1, 30, TimeSpan.FromMilliseconds(100));
ScaleUpTrans.BeginAnimation(ScaleTransform.ScaleXProperty, ScaleUpAnime);
ScaleUpTrans.BeginAnimation(ScaleTransform.ScaleYProperty, ScaleUpAnime);
}
but the problem is , when this animation run the position of the images will change and i dont want this ,
could you help me to fix this problem please,
in fact i want to scale them up in their position.
Continue reading...
I have a textBox and I want to Make a check and error image for it when i check the textbox text.
so i add two image into my project and set their width and height to 1 and i want to use animation to scale them up and i use this code :
private void ScaleUpAnime(Image MyImg)
{
ScaleTransform ScaleUpTrans = new ScaleTransform(0, 0, 0, 0);
MyImg.RenderTransform = ScaleUpTrans;
DoubleAnimation ScaleUpAnime = new DoubleAnimation(1, 30, TimeSpan.FromMilliseconds(100));
ScaleUpTrans.BeginAnimation(ScaleTransform.ScaleXProperty, ScaleUpAnime);
ScaleUpTrans.BeginAnimation(ScaleTransform.ScaleYProperty, ScaleUpAnime);
}
but the problem is , when this animation run the position of the images will change and i dont want this ,
could you help me to fix this problem please,
in fact i want to scale them up in their position.
Continue reading...