Не изменяются значения Width и Height
Пытаюсь изменить width и height у Ellipse - не изменяется. Пытаюсь изменить width и height через анимацию - изменяется. Почему так? Код:
Ellipse el = ((item as Grid).Children[0] as Ellipse);
//DoubleAnimation da = new DoubleAnimation(value, TimeSpan.FromSeconds(0.3));
//el.BeginAnimation(Ellipse.WidthProperty, da);
//el.BeginAnimation(Ellipse.HeightProperty, da);
el.Width = value;
el.Height = value;